aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2018-12-22 21:17:55 +0000
committerFlorian Diebold <[email protected]>2018-12-23 12:48:04 +0000
commit3899898d75176ce3cd87f9e2acecd7e3a987dda5 (patch)
tree00dc54ff21b509d1c68ba7d1d0d1bddd2848b45f /crates/ra_syntax
parent3ac605e6876056fa56098231cc2f96553faab8f0 (diff)
Parse integer / float types
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs6
-rw-r--r--crates/ra_syntax/src/grammar.ron2
2 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index 91f27fb26..74bf4d3cc 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -2697,7 +2697,11 @@ impl<R: TreeRoot<RaTypes>> PathTypeNode<R> {
2697} 2697}
2698 2698
2699 2699
2700impl<'a> PathType<'a> {} 2700impl<'a> PathType<'a> {
2701 pub fn path(self) -> Option<Path<'a>> {
2702 super::child_opt(self)
2703 }
2704}
2701 2705
2702// PlaceholderPat 2706// PlaceholderPat
2703#[derive(Debug, Clone, Copy,)] 2707#[derive(Debug, Clone, Copy,)]
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index c43db51b6..29b84854a 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -304,7 +304,7 @@ Grammar(
304 "ParenType": (), 304 "ParenType": (),
305 "TupleType": (), 305 "TupleType": (),
306 "NeverType": (), 306 "NeverType": (),
307 "PathType": (), 307 "PathType": (options: ["Path"]),
308 "PointerType": (), 308 "PointerType": (),
309 "ArrayType": (), 309 "ArrayType": (),
310 "SliceType": (), 310 "SliceType": (),