diff options
-rw-r--r-- | grammar.ron | 2 | ||||
-rw-r--r-- | src/parser/event_parser/grammar/items.rs | 21 | ||||
-rw-r--r-- | src/parser/event_parser/grammar/mod.rs | 3 | ||||
-rw-r--r-- | src/syntax_kinds.rs | 127 | ||||
-rw-r--r-- | tests/data/lexer/0011_keywords.rs | 2 | ||||
-rw-r--r-- | tests/data/lexer/0011_keywords.txt | 2 | ||||
-rw-r--r-- | tests/data/parser/ok/0008_mod_item.rs | 17 | ||||
-rw-r--r-- | tests/data/parser/ok/0008_mod_item.txt | 75 |
8 files changed, 180 insertions, 69 deletions
diff --git a/grammar.ron b/grammar.ron index c475826e4..8871a1996 100644 --- a/grammar.ron +++ b/grammar.ron | |||
@@ -11,6 +11,7 @@ Grammar( | |||
11 | "as", | 11 | "as", |
12 | "extern", | 12 | "extern", |
13 | "crate", | 13 | "crate", |
14 | "mod", | ||
14 | ], | 15 | ], |
15 | tokens: [ | 16 | tokens: [ |
16 | "ERROR", | 17 | "ERROR", |
@@ -73,6 +74,7 @@ Grammar( | |||
73 | "EXTERN_CRATE_ITEM", | 74 | "EXTERN_CRATE_ITEM", |
74 | "ATTR", | 75 | "ATTR", |
75 | "META_ITEM", | 76 | "META_ITEM", |
77 | "MOD_ITEM", | ||
76 | "LITERAL", | 78 | "LITERAL", |
77 | "ALIAS", | 79 | "ALIAS", |
78 | ] | 80 | ] |
diff --git a/src/parser/event_parser/grammar/items.rs b/src/parser/event_parser/grammar/items.rs index 9b174679c..e775db14b 100644 --- a/src/parser/event_parser/grammar/items.rs +++ b/src/parser/event_parser/grammar/items.rs | |||
@@ -1,9 +1,10 @@ | |||
1 | use super::*; | 1 | use super::*; |
2 | 2 | ||
3 | pub(super) fn mod_items(p: &mut Parser) { | 3 | pub(super) fn mod_contents(p: &mut Parser) { |
4 | attributes::inner_attributes(p); | ||
4 | many(p, |p| { | 5 | many(p, |p| { |
5 | skip_to_first( | 6 | skip_to_first( |
6 | p, item_first, mod_item, | 7 | p, item_first, mod_contents_item, |
7 | "expected item", | 8 | "expected item", |
8 | ) | 9 | ) |
9 | }); | 10 | }); |
@@ -11,12 +12,12 @@ pub(super) fn mod_items(p: &mut Parser) { | |||
11 | 12 | ||
12 | fn item_first(p: &Parser) -> bool { | 13 | fn item_first(p: &Parser) -> bool { |
13 | match p.current() { | 14 | match p.current() { |
14 | STRUCT_KW | FN_KW | EXTERN_KW => true, | 15 | STRUCT_KW | FN_KW | EXTERN_KW | MOD_KW => true, |
15 | _ => false, | 16 | _ => false, |
16 | } | 17 | } |
17 | } | 18 | } |
18 | 19 | ||
19 | fn mod_item(p: &mut Parser) { | 20 | fn mod_contents_item(p: &mut Parser) { |
20 | if item(p) { | 21 | if item(p) { |
21 | if p.current() == SEMI { | 22 | if p.current() == SEMI { |
22 | node(p, ERROR, |p| { | 23 | node(p, ERROR, |p| { |
@@ -39,9 +40,9 @@ fn item(p: &mut Parser) -> bool { | |||
39 | // || node_if(p, CONST_KW, CONST_ITEM, const_item) or const FN! | 40 | // || node_if(p, CONST_KW, CONST_ITEM, const_item) or const FN! |
40 | // || unsafe trait, impl | 41 | // || unsafe trait, impl |
41 | // || node_if(p, FN_KW, FN_ITEM, fn_item) | 42 | // || node_if(p, FN_KW, FN_ITEM, fn_item) |
42 | // || node_if(p, MOD_KW, MOD_ITEM, mod_item) | ||
43 | // || node_if(p, TYPE_KW, TYPE_ITEM, type_item) | 43 | // || node_if(p, TYPE_KW, TYPE_ITEM, type_item) |
44 | node_if(p, [EXTERN_KW, CRATE_KW], EXTERN_CRATE_ITEM, extern_crate_item) | 44 | node_if(p, [EXTERN_KW, CRATE_KW], EXTERN_CRATE_ITEM, extern_crate_item) |
45 | || node_if(p, MOD_KW, MOD_ITEM, mod_item) | ||
45 | || node_if(p, STRUCT_KW, STRUCT_ITEM, struct_item) | 46 | || node_if(p, STRUCT_KW, STRUCT_ITEM, struct_item) |
46 | || node_if(p, FN_KW, FN_ITEM, fn_item) | 47 | || node_if(p, FN_KW, FN_ITEM, fn_item) |
47 | } | 48 | } |
@@ -55,6 +56,16 @@ fn extern_crate_item(p: &mut Parser) { | |||
55 | p.expect(IDENT) && alias(p) && p.expect(SEMI); | 56 | p.expect(IDENT) && alias(p) && p.expect(SEMI); |
56 | } | 57 | } |
57 | 58 | ||
59 | fn mod_item(p: &mut Parser) { | ||
60 | if !p.expect(IDENT) { | ||
61 | return; | ||
62 | } | ||
63 | if p.eat(SEMI) { | ||
64 | return; | ||
65 | } | ||
66 | p.curly_block(mod_contents); | ||
67 | } | ||
68 | |||
58 | fn struct_field(p: &mut Parser) -> bool { | 69 | fn struct_field(p: &mut Parser) -> bool { |
59 | node_if(p, IDENT, STRUCT_FIELD, |p| { | 70 | node_if(p, IDENT, STRUCT_FIELD, |p| { |
60 | p.expect(COLON) && p.expect(IDENT); | 71 | p.expect(COLON) && p.expect(IDENT); |
diff --git a/src/parser/event_parser/grammar/mod.rs b/src/parser/event_parser/grammar/mod.rs index dd1270eae..6d1cd7ec3 100644 --- a/src/parser/event_parser/grammar/mod.rs +++ b/src/parser/event_parser/grammar/mod.rs | |||
@@ -10,8 +10,7 @@ mod expressions; | |||
10 | pub(crate) fn file(p: &mut Parser) { | 10 | pub(crate) fn file(p: &mut Parser) { |
11 | node(p, FILE, |p| { | 11 | node(p, FILE, |p| { |
12 | p.optional(SHEBANG); | 12 | p.optional(SHEBANG); |
13 | attributes::inner_attributes(p); | 13 | items::mod_contents(p); |
14 | items::mod_items(p); | ||
15 | }) | 14 | }) |
16 | } | 15 | } |
17 | 16 | ||
diff --git a/src/syntax_kinds.rs b/src/syntax_kinds.rs index 6db82051e..26838d2d8 100644 --- a/src/syntax_kinds.rs +++ b/src/syntax_kinds.rs | |||
@@ -12,68 +12,70 @@ pub const FALSE_KW: SyntaxKind = SyntaxKind(7); | |||
12 | pub const AS_KW: SyntaxKind = SyntaxKind(8); | 12 | pub const AS_KW: SyntaxKind = SyntaxKind(8); |
13 | pub const EXTERN_KW: SyntaxKind = SyntaxKind(9); | 13 | pub const EXTERN_KW: SyntaxKind = SyntaxKind(9); |
14 | pub const CRATE_KW: SyntaxKind = SyntaxKind(10); | 14 | pub const CRATE_KW: SyntaxKind = SyntaxKind(10); |
15 | pub const ERROR: SyntaxKind = SyntaxKind(11); | 15 | pub const MOD_KW: SyntaxKind = SyntaxKind(11); |
16 | pub const IDENT: SyntaxKind = SyntaxKind(12); | 16 | pub const ERROR: SyntaxKind = SyntaxKind(12); |
17 | pub const UNDERSCORE: SyntaxKind = SyntaxKind(13); | 17 | pub const IDENT: SyntaxKind = SyntaxKind(13); |
18 | pub const WHITESPACE: SyntaxKind = SyntaxKind(14); | 18 | pub const UNDERSCORE: SyntaxKind = SyntaxKind(14); |
19 | pub const INT_NUMBER: SyntaxKind = SyntaxKind(15); | 19 | pub const WHITESPACE: SyntaxKind = SyntaxKind(15); |
20 | pub const FLOAT_NUMBER: SyntaxKind = SyntaxKind(16); | 20 | pub const INT_NUMBER: SyntaxKind = SyntaxKind(16); |
21 | pub const SEMI: SyntaxKind = SyntaxKind(17); | 21 | pub const FLOAT_NUMBER: SyntaxKind = SyntaxKind(17); |
22 | pub const COMMA: SyntaxKind = SyntaxKind(18); | 22 | pub const SEMI: SyntaxKind = SyntaxKind(18); |
23 | pub const DOT: SyntaxKind = SyntaxKind(19); | 23 | pub const COMMA: SyntaxKind = SyntaxKind(19); |
24 | pub const DOTDOT: SyntaxKind = SyntaxKind(20); | 24 | pub const DOT: SyntaxKind = SyntaxKind(20); |
25 | pub const DOTDOTDOT: SyntaxKind = SyntaxKind(21); | 25 | pub const DOTDOT: SyntaxKind = SyntaxKind(21); |
26 | pub const DOTDOTEQ: SyntaxKind = SyntaxKind(22); | 26 | pub const DOTDOTDOT: SyntaxKind = SyntaxKind(22); |
27 | pub const L_PAREN: SyntaxKind = SyntaxKind(23); | 27 | pub const DOTDOTEQ: SyntaxKind = SyntaxKind(23); |
28 | pub const R_PAREN: SyntaxKind = SyntaxKind(24); | 28 | pub const L_PAREN: SyntaxKind = SyntaxKind(24); |
29 | pub const L_CURLY: SyntaxKind = SyntaxKind(25); | 29 | pub const R_PAREN: SyntaxKind = SyntaxKind(25); |
30 | pub const R_CURLY: SyntaxKind = SyntaxKind(26); | 30 | pub const L_CURLY: SyntaxKind = SyntaxKind(26); |
31 | pub const L_BRACK: SyntaxKind = SyntaxKind(27); | 31 | pub const R_CURLY: SyntaxKind = SyntaxKind(27); |
32 | pub const R_BRACK: SyntaxKind = SyntaxKind(28); | 32 | pub const L_BRACK: SyntaxKind = SyntaxKind(28); |
33 | pub const L_ANGLE: SyntaxKind = SyntaxKind(29); | 33 | pub const R_BRACK: SyntaxKind = SyntaxKind(29); |
34 | pub const R_ANGLE: SyntaxKind = SyntaxKind(30); | 34 | pub const L_ANGLE: SyntaxKind = SyntaxKind(30); |
35 | pub const AT: SyntaxKind = SyntaxKind(31); | 35 | pub const R_ANGLE: SyntaxKind = SyntaxKind(31); |
36 | pub const POUND: SyntaxKind = SyntaxKind(32); | 36 | pub const AT: SyntaxKind = SyntaxKind(32); |
37 | pub const TILDE: SyntaxKind = SyntaxKind(33); | 37 | pub const POUND: SyntaxKind = SyntaxKind(33); |
38 | pub const QUESTION: SyntaxKind = SyntaxKind(34); | 38 | pub const TILDE: SyntaxKind = SyntaxKind(34); |
39 | pub const COLON: SyntaxKind = SyntaxKind(35); | 39 | pub const QUESTION: SyntaxKind = SyntaxKind(35); |
40 | pub const COLONCOLON: SyntaxKind = SyntaxKind(36); | 40 | pub const COLON: SyntaxKind = SyntaxKind(36); |
41 | pub const DOLLAR: SyntaxKind = SyntaxKind(37); | 41 | pub const COLONCOLON: SyntaxKind = SyntaxKind(37); |
42 | pub const EQ: SyntaxKind = SyntaxKind(38); | 42 | pub const DOLLAR: SyntaxKind = SyntaxKind(38); |
43 | pub const EQEQ: SyntaxKind = SyntaxKind(39); | 43 | pub const EQ: SyntaxKind = SyntaxKind(39); |
44 | pub const FAT_ARROW: SyntaxKind = SyntaxKind(40); | 44 | pub const EQEQ: SyntaxKind = SyntaxKind(40); |
45 | pub const NEQ: SyntaxKind = SyntaxKind(41); | 45 | pub const FAT_ARROW: SyntaxKind = SyntaxKind(41); |
46 | pub const EXCL: SyntaxKind = SyntaxKind(42); | 46 | pub const NEQ: SyntaxKind = SyntaxKind(42); |
47 | pub const LIFETIME: SyntaxKind = SyntaxKind(43); | 47 | pub const EXCL: SyntaxKind = SyntaxKind(43); |
48 | pub const CHAR: SyntaxKind = SyntaxKind(44); | 48 | pub const LIFETIME: SyntaxKind = SyntaxKind(44); |
49 | pub const BYTE: SyntaxKind = SyntaxKind(45); | 49 | pub const CHAR: SyntaxKind = SyntaxKind(45); |
50 | pub const STRING: SyntaxKind = SyntaxKind(46); | 50 | pub const BYTE: SyntaxKind = SyntaxKind(46); |
51 | pub const RAW_STRING: SyntaxKind = SyntaxKind(47); | 51 | pub const STRING: SyntaxKind = SyntaxKind(47); |
52 | pub const BYTE_STRING: SyntaxKind = SyntaxKind(48); | 52 | pub const RAW_STRING: SyntaxKind = SyntaxKind(48); |
53 | pub const RAW_BYTE_STRING: SyntaxKind = SyntaxKind(49); | 53 | pub const BYTE_STRING: SyntaxKind = SyntaxKind(49); |
54 | pub const PLUS: SyntaxKind = SyntaxKind(50); | 54 | pub const RAW_BYTE_STRING: SyntaxKind = SyntaxKind(50); |
55 | pub const MINUS: SyntaxKind = SyntaxKind(51); | 55 | pub const PLUS: SyntaxKind = SyntaxKind(51); |
56 | pub const STAR: SyntaxKind = SyntaxKind(52); | 56 | pub const MINUS: SyntaxKind = SyntaxKind(52); |
57 | pub const SLASH: SyntaxKind = SyntaxKind(53); | 57 | pub const STAR: SyntaxKind = SyntaxKind(53); |
58 | pub const CARET: SyntaxKind = SyntaxKind(54); | 58 | pub const SLASH: SyntaxKind = SyntaxKind(54); |
59 | pub const PERCENT: SyntaxKind = SyntaxKind(55); | 59 | pub const CARET: SyntaxKind = SyntaxKind(55); |
60 | pub const AMPERSAND: SyntaxKind = SyntaxKind(56); | 60 | pub const PERCENT: SyntaxKind = SyntaxKind(56); |
61 | pub const PIPE: SyntaxKind = SyntaxKind(57); | 61 | pub const AMPERSAND: SyntaxKind = SyntaxKind(57); |
62 | pub const THIN_ARROW: SyntaxKind = SyntaxKind(58); | 62 | pub const PIPE: SyntaxKind = SyntaxKind(58); |
63 | pub const COMMENT: SyntaxKind = SyntaxKind(59); | 63 | pub const THIN_ARROW: SyntaxKind = SyntaxKind(59); |
64 | pub const DOC_COMMENT: SyntaxKind = SyntaxKind(60); | 64 | pub const COMMENT: SyntaxKind = SyntaxKind(60); |
65 | pub const SHEBANG: SyntaxKind = SyntaxKind(61); | 65 | pub const DOC_COMMENT: SyntaxKind = SyntaxKind(61); |
66 | pub const FILE: SyntaxKind = SyntaxKind(62); | 66 | pub const SHEBANG: SyntaxKind = SyntaxKind(62); |
67 | pub const STRUCT_ITEM: SyntaxKind = SyntaxKind(63); | 67 | pub const FILE: SyntaxKind = SyntaxKind(63); |
68 | pub const STRUCT_FIELD: SyntaxKind = SyntaxKind(64); | 68 | pub const STRUCT_ITEM: SyntaxKind = SyntaxKind(64); |
69 | pub const FN_ITEM: SyntaxKind = SyntaxKind(65); | 69 | pub const STRUCT_FIELD: SyntaxKind = SyntaxKind(65); |
70 | pub const EXTERN_CRATE_ITEM: SyntaxKind = SyntaxKind(66); | 70 | pub const FN_ITEM: SyntaxKind = SyntaxKind(66); |
71 | pub const ATTR: SyntaxKind = SyntaxKind(67); | 71 | pub const EXTERN_CRATE_ITEM: SyntaxKind = SyntaxKind(67); |
72 | pub const META_ITEM: SyntaxKind = SyntaxKind(68); | 72 | pub const ATTR: SyntaxKind = SyntaxKind(68); |
73 | pub const LITERAL: SyntaxKind = SyntaxKind(69); | 73 | pub const META_ITEM: SyntaxKind = SyntaxKind(69); |
74 | pub const ALIAS: SyntaxKind = SyntaxKind(70); | 74 | pub const MOD_ITEM: SyntaxKind = SyntaxKind(70); |
75 | pub const LITERAL: SyntaxKind = SyntaxKind(71); | ||
76 | pub const ALIAS: SyntaxKind = SyntaxKind(72); | ||
75 | 77 | ||
76 | static INFOS: [SyntaxInfo; 71] = [ | 78 | static INFOS: [SyntaxInfo; 73] = [ |
77 | SyntaxInfo { name: "USE_KW" }, | 79 | SyntaxInfo { name: "USE_KW" }, |
78 | SyntaxInfo { name: "FN_KW" }, | 80 | SyntaxInfo { name: "FN_KW" }, |
79 | SyntaxInfo { name: "STRUCT_KW" }, | 81 | SyntaxInfo { name: "STRUCT_KW" }, |
@@ -85,6 +87,7 @@ static INFOS: [SyntaxInfo; 71] = [ | |||
85 | SyntaxInfo { name: "AS_KW" }, | 87 | SyntaxInfo { name: "AS_KW" }, |
86 | SyntaxInfo { name: "EXTERN_KW" }, | 88 | SyntaxInfo { name: "EXTERN_KW" }, |
87 | SyntaxInfo { name: "CRATE_KW" }, | 89 | SyntaxInfo { name: "CRATE_KW" }, |
90 | SyntaxInfo { name: "MOD_KW" }, | ||
88 | SyntaxInfo { name: "ERROR" }, | 91 | SyntaxInfo { name: "ERROR" }, |
89 | SyntaxInfo { name: "IDENT" }, | 92 | SyntaxInfo { name: "IDENT" }, |
90 | SyntaxInfo { name: "UNDERSCORE" }, | 93 | SyntaxInfo { name: "UNDERSCORE" }, |
@@ -143,6 +146,7 @@ static INFOS: [SyntaxInfo; 71] = [ | |||
143 | SyntaxInfo { name: "EXTERN_CRATE_ITEM" }, | 146 | SyntaxInfo { name: "EXTERN_CRATE_ITEM" }, |
144 | SyntaxInfo { name: "ATTR" }, | 147 | SyntaxInfo { name: "ATTR" }, |
145 | SyntaxInfo { name: "META_ITEM" }, | 148 | SyntaxInfo { name: "META_ITEM" }, |
149 | SyntaxInfo { name: "MOD_ITEM" }, | ||
146 | SyntaxInfo { name: "LITERAL" }, | 150 | SyntaxInfo { name: "LITERAL" }, |
147 | SyntaxInfo { name: "ALIAS" }, | 151 | SyntaxInfo { name: "ALIAS" }, |
148 | ]; | 152 | ]; |
@@ -164,6 +168,7 @@ pub(crate) fn ident_to_keyword(ident: &str) -> Option<SyntaxKind> { | |||
164 | "as" => Some(AS_KW), | 168 | "as" => Some(AS_KW), |
165 | "extern" => Some(EXTERN_KW), | 169 | "extern" => Some(EXTERN_KW), |
166 | "crate" => Some(CRATE_KW), | 170 | "crate" => Some(CRATE_KW), |
171 | "mod" => Some(MOD_KW), | ||
167 | _ => None, | 172 | _ => None, |
168 | } | 173 | } |
169 | } | 174 | } |
diff --git a/tests/data/lexer/0011_keywords.rs b/tests/data/lexer/0011_keywords.rs index 4adb1587e..58568b20d 100644 --- a/tests/data/lexer/0011_keywords.rs +++ b/tests/data/lexer/0011_keywords.rs | |||
@@ -1 +1 @@ | |||
fn use struct trait enum impl true false as extern crate | fn use struct trait enum impl true false as extern crate mod | ||
diff --git a/tests/data/lexer/0011_keywords.txt b/tests/data/lexer/0011_keywords.txt index bf8ceffd4..35d9a3871 100644 --- a/tests/data/lexer/0011_keywords.txt +++ b/tests/data/lexer/0011_keywords.txt | |||
@@ -19,4 +19,6 @@ WHITESPACE 1 " " | |||
19 | EXTERN_KW 6 "extern" | 19 | EXTERN_KW 6 "extern" |
20 | WHITESPACE 1 " " | 20 | WHITESPACE 1 " " |
21 | CRATE_KW 5 "crate" | 21 | CRATE_KW 5 "crate" |
22 | WHITESPACE 1 " " | ||
23 | MOD_KW 3 "mod" | ||
22 | WHITESPACE 1 "\n" | 24 | WHITESPACE 1 "\n" |
diff --git a/tests/data/parser/ok/0008_mod_item.rs b/tests/data/parser/ok/0008_mod_item.rs new file mode 100644 index 000000000..d22993bc1 --- /dev/null +++ b/tests/data/parser/ok/0008_mod_item.rs | |||
@@ -0,0 +1,17 @@ | |||
1 | mod a; | ||
2 | |||
3 | mod b { | ||
4 | } | ||
5 | |||
6 | mod c { | ||
7 | fn foo() { | ||
8 | } | ||
9 | struct S {} | ||
10 | } | ||
11 | |||
12 | mod d { | ||
13 | #![attr] | ||
14 | mod e; | ||
15 | mod f { | ||
16 | } | ||
17 | } \ No newline at end of file | ||
diff --git a/tests/data/parser/ok/0008_mod_item.txt b/tests/data/parser/ok/0008_mod_item.txt new file mode 100644 index 000000000..425e3344c --- /dev/null +++ b/tests/data/parser/ok/0008_mod_item.txt | |||
@@ -0,0 +1,75 @@ | |||
1 | FILE@[0; 118) | ||
2 | MOD_ITEM@[0; 8) | ||
3 | MOD_KW@[0; 3) | ||
4 | WHITESPACE@[3; 4) | ||
5 | IDENT@[4; 5) | ||
6 | SEMI@[5; 6) | ||
7 | WHITESPACE@[6; 8) | ||
8 | MOD_ITEM@[8; 19) | ||
9 | MOD_KW@[8; 11) | ||
10 | WHITESPACE@[11; 12) | ||
11 | IDENT@[12; 13) | ||
12 | WHITESPACE@[13; 14) | ||
13 | L_CURLY@[14; 15) | ||
14 | WHITESPACE@[15; 16) | ||
15 | R_CURLY@[16; 17) | ||
16 | WHITESPACE@[17; 19) | ||
17 | MOD_ITEM@[19; 67) | ||
18 | MOD_KW@[19; 22) | ||
19 | WHITESPACE@[22; 23) | ||
20 | IDENT@[23; 24) | ||
21 | WHITESPACE@[24; 25) | ||
22 | L_CURLY@[25; 26) | ||
23 | FN_ITEM@[26; 52) | ||
24 | WHITESPACE@[26; 31) | ||
25 | FN_KW@[31; 33) | ||
26 | WHITESPACE@[33; 34) | ||
27 | IDENT@[34; 37) | ||
28 | L_PAREN@[37; 38) | ||
29 | R_PAREN@[38; 39) | ||
30 | WHITESPACE@[39; 40) | ||
31 | L_CURLY@[40; 41) | ||
32 | WHITESPACE@[41; 46) | ||
33 | R_CURLY@[46; 47) | ||
34 | WHITESPACE@[47; 52) | ||
35 | STRUCT_ITEM@[52; 64) | ||
36 | STRUCT_KW@[52; 58) | ||
37 | WHITESPACE@[58; 59) | ||
38 | IDENT@[59; 60) | ||
39 | WHITESPACE@[60; 61) | ||
40 | L_CURLY@[61; 62) | ||
41 | R_CURLY@[62; 63) | ||
42 | WHITESPACE@[63; 64) | ||
43 | R_CURLY@[64; 65) | ||
44 | WHITESPACE@[65; 67) | ||
45 | MOD_ITEM@[67; 118) | ||
46 | MOD_KW@[67; 70) | ||
47 | WHITESPACE@[70; 71) | ||
48 | IDENT@[71; 72) | ||
49 | WHITESPACE@[72; 73) | ||
50 | L_CURLY@[73; 74) | ||
51 | ATTR@[74; 92) | ||
52 | WHITESPACE@[74; 79) | ||
53 | POUND@[79; 80) | ||
54 | EXCL@[80; 81) | ||
55 | L_BRACK@[81; 82) | ||
56 | META_ITEM@[82; 86) | ||
57 | IDENT@[82; 86) | ||
58 | R_BRACK@[86; 87) | ||
59 | WHITESPACE@[87; 92) | ||
60 | MOD_ITEM@[92; 103) | ||
61 | MOD_KW@[92; 95) | ||
62 | WHITESPACE@[95; 96) | ||
63 | IDENT@[96; 97) | ||
64 | SEMI@[97; 98) | ||
65 | WHITESPACE@[98; 103) | ||
66 | MOD_ITEM@[103; 117) | ||
67 | MOD_KW@[103; 106) | ||
68 | WHITESPACE@[106; 107) | ||
69 | IDENT@[107; 108) | ||
70 | WHITESPACE@[108; 109) | ||
71 | L_CURLY@[109; 110) | ||
72 | WHITESPACE@[110; 115) | ||
73 | R_CURLY@[115; 116) | ||
74 | WHITESPACE@[116; 117) | ||
75 | R_CURLY@[117; 118) | ||