fix the test

This commit is contained in:
Aleksey Kladov 2019-02-21 13:45:10 +03:00
parent c47f9e2d37
commit 46179230a0
2 changed files with 4 additions and 4 deletions

View file

@ -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}},