Debian Codegraph @

tests/languages/antlr4/definition_feature.test

raw
1 foo : FOO ;
2 FOO : BAR ;
3 fragment BAR : 'bar' ;
4
5 ----------------------------------------------------
6
7 [
8 ["definition", "foo"],
9 ["punctuation", ":"],
10 ["constant", "FOO"],
11 ["punctuation", ";"],
12 ["definition", "FOO"],
13 ["punctuation", ":"],
14 ["constant", "BAR"],
15 ["punctuation", ";"],
16 ["keyword", "fragment"],
17 ["definition", "BAR"],
18 ["punctuation", ":"],
19 ["string", "'bar'"],
20 ["punctuation", ";"]
21 ]
22
23 ----------------------------------------------------
24
25 Checks for token and rule definitions.