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

View file

@ -14,11 +14,11 @@ pub use teraron::{Mode, Overwrite, Verify};
pub type Result<T> = std::result::Result<T, failure::Error>;
pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron";
const GRAMMAR_DIR: &str = "crates/ra_syntax/src/parsing/grammar";
const GRAMMAR_DIR: &str = "crates/ra_parser/src/grammar";
const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/tests/data/parser/inline/ok";
const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/tests/data/parser/inline/err";
pub const SYNTAX_KINDS: &str = "crates/ra_syntax/src/syntax_kinds/generated.rs.tera";
pub const SYNTAX_KINDS: &str = "crates/ra_parser/src/syntax_kind/generated.rs.tera";
pub const AST: &str = "crates/ra_syntax/src/ast/generated.rs.tera";
const TOOLCHAIN: &str = "stable";