mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fix the test
This commit is contained in:
parent
c47f9e2d37
commit
46179230a0
2 changed files with 4 additions and 4 deletions
|
@ -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}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue