mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-12241 links_ are not highlighted in ReST files when they are followed by some of the punctuation chars
This commit is contained in:
@@ -155,6 +155,31 @@ public class RestLexerTest extends TestCase {
|
||||
"[ :term:`user`, LINE]"
|
||||
);
|
||||
}
|
||||
public void testLinks() throws IOException {
|
||||
doTest("link_/\n" +
|
||||
"link_!\n" +
|
||||
"\"link_\"\n" +
|
||||
"'link_'\n" +
|
||||
"link_;\n",
|
||||
"[link_, REFERENCE_NAME]",
|
||||
"[/, LINE]",
|
||||
"[\n, WHITESPACE]",
|
||||
"[link_, REFERENCE_NAME]",
|
||||
"[!, LINE]",
|
||||
"[\n, WHITESPACE]",
|
||||
"[\", LINE]",
|
||||
"[link_, REFERENCE_NAME]",
|
||||
"[\", LINE]",
|
||||
"[\n, WHITESPACE]",
|
||||
"[', LINE]",
|
||||
"[link_, REFERENCE_NAME]",
|
||||
"[', LINE]",
|
||||
"[\n, WHITESPACE]",
|
||||
"[link_, REFERENCE_NAME]",
|
||||
"[;, LINE]",
|
||||
"[\n, WHITESPACE]"
|
||||
);
|
||||
}
|
||||
|
||||
public void testInterpreted() throws IOException {
|
||||
doTest(":kbd:`1`\n" +
|
||||
|
||||
Reference in New Issue
Block a user