@Test
		void testBlock2End() {
			// Change for removing '/'
			int blockComment2 = TEXT_JAVA.indexOf("* two");
			int blockComment2Open = TEXT_JAVA.lastIndexOf("/**", blockComment2);
			int blockComment2Close = TEXT_JAVA.indexOf("*/", blockComment2) + 2;
			int blockComment3Close = TEXT_JAVA.indexOf("*/", blockComment2Close + 1) + 2;
			PlainTextChange change = new PlainTextChange(blockComment2Close - 1, "/", "");
			String modifiedText = apply(change);

			// The restyled range should expand into block 3, since the end of block 2 was removed.
			IntRange restyledRange = SyntaxUtil.getRangeForRestyle(modifiedText, styleSpans, HIGHLIGHTER_JAVA, change);
			String matchedText = restyledRange.sectionOfText(modifiedText);
			assertTrue(matchedText.matches(JAVADOC_PATTERN));
			assertEquals(blockComment2Open, restyledRange.start());
			assertEquals(blockComment3Close + change.getNetLength(), restyledRange.end());
		}
' prior.
			// Currently, this will expand backwards to the start since the change is on the edge of these
			// two flattened ranges (0th and 1st).
			IntRange restyledRange = SyntaxUtil.getRangeForRestyle(modifiedText, styleSpans, HIGHLIGHTER_JAVA, change);
			String matchedText = restyledRange.sectionOfText(modifiedText);
			assertFalse(matchedText.matches(JAVADOC_PATTERN));
			assertEquals(0, restyledRange.start());
			assertEquals(blockComment1Close, restyledRange.end());
		}

		@Test
		void testBlock1End() {
			// Change for removing '/'
			int blockComment1 = TEXT_JAVA.indexOf("* one");
			int blockComment1Open = TEXT_JAVA.lastIndexOf("/**", blockComment1);
			int blockComment1Close = TEXT_JAVA.indexOf("
recaf-ui/src/test/java/software/coley/recaf/ui/control/richtext/syntax/RegexSyntaxHighlighterTest.java