aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_parser/src/syntax_kind/generated.rs.tera4
-rw-r--r--crates/tools/src/lib.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs.tera b/crates/ra_parser/src/syntax_kind/generated.rs.tera
index 837437136..f241a21a0 100644
--- a/crates/ra_parser/src/syntax_kind/generated.rs.tera
+++ b/crates/ra_parser/src/syntax_kind/generated.rs.tera
@@ -74,7 +74,7 @@ impl SyntaxKind {
74 EOF => &SyntaxInfo { name: "EOF" }, 74 EOF => &SyntaxInfo { name: "EOF" },
75 } 75 }
76 } 76 }
77 pub(crate) fn from_keyword(ident: &str) -> Option<SyntaxKind> { 77 pub fn from_keyword(ident: &str) -> Option<SyntaxKind> {
78 let kw = match ident { 78 let kw = match ident {
79{%- for kw in keywords %} 79{%- for kw in keywords %}
80 "{{kw}}" => {{kw | upper}}_KW, 80 "{{kw}}" => {{kw | upper}}_KW,
@@ -84,7 +84,7 @@ impl SyntaxKind {
84 Some(kw) 84 Some(kw)
85 } 85 }
86 86
87 pub(crate) fn from_char(c: char) -> Option<SyntaxKind> { 87 pub fn from_char(c: char) -> Option<SyntaxKind> {
88 let tok = match c { 88 let tok = match c {
89{%- for t in single_byte_tokens %} 89{%- for t in single_byte_tokens %}
90 '{{t.0}}' => {{t.1}}, 90 '{{t.0}}' => {{t.1}},
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs
index 0a10d2737..3c23ed76e 100644
--- a/crates/tools/src/lib.rs
+++ b/crates/tools/src/lib.rs
@@ -14,11 +14,11 @@ pub use teraron::{Mode, Overwrite, Verify};
14pub type Result<T> = std::result::Result<T, failure::Error>; 14pub type Result<T> = std::result::Result<T, failure::Error>;
15 15
16pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron"; 16pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron";
17const GRAMMAR_DIR: &str = "crates/ra_syntax/src/parsing/grammar"; 17const GRAMMAR_DIR: &str = "crates/ra_parser/src/grammar";
18const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/tests/data/parser/inline/ok"; 18const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/tests/data/parser/inline/ok";
19const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/tests/data/parser/inline/err"; 19const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/tests/data/parser/inline/err";
20 20
21pub const SYNTAX_KINDS: &str = "crates/ra_syntax/src/syntax_kinds/generated.rs.tera"; 21pub const SYNTAX_KINDS: &str = "crates/ra_parser/src/syntax_kind/generated.rs.tera";
22pub const AST: &str = "crates/ra_syntax/src/ast/generated.rs.tera"; 22pub const AST: &str = "crates/ra_syntax/src/ast/generated.rs.tera";
23const TOOLCHAIN: &str = "stable"; 23const TOOLCHAIN: &str = "stable";
24 24