fix the test
This commit is contained in:
@@ -74,7 +74,7 @@ impl SyntaxKind {
|
||||
EOF => &SyntaxInfo { name: "EOF" },
|
||||
}
|
||||
}
|
||||
pub(crate) fn from_keyword(ident: &str) -> Option<SyntaxKind> {
|
||||
pub fn from_keyword(ident: &str) -> Option<SyntaxKind> {
|
||||
let kw = match ident {
|
||||
{%- for kw in keywords %}
|
||||
"{{kw}}" => {{kw | upper}}_KW,
|
||||
@@ -84,7 +84,7 @@ impl SyntaxKind {
|
||||
Some(kw)
|
||||
}
|
||||
|
||||
pub(crate) fn from_char(c: char) -> Option<SyntaxKind> {
|
||||
pub fn from_char(c: char) -> Option<SyntaxKind> {
|
||||
let tok = match c {
|
||||
{%- for t in single_byte_tokens %}
|
||||
'{{t.0}}' => {{t.1}},
|
||||
|
||||
Reference in New Issue
Block a user