1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]
#[allow(non_camel_case_types)]
#[repr(u16)]
pub enum SyntaxKind {
WHITESPACE,
JUNK,
L_DELIM,
R_DELIM,
L_CURLY,
R_CURLY,
COMMA,
POUND,
QUOTE,
EQ,
TYPE,
WORD,
NAME,
INTEGER,
NBSP,
ACCENT_NAME,
COMMAND_NAME,
PREAMBLE,
STRING,
ENTRY,
FIELD,
VALUE,
LITERAL,
JOIN,
ACCENT,
COMMAND,
CURLY_GROUP,
QUOTE_GROUP,
ROOT,
}
impl From<SyntaxKind> for rowan::SyntaxKind {
fn from(kind: SyntaxKind) -> Self {
Self(kind as u16)
}
}
|