diff options
author | Aleksey Kladov <[email protected]> | 2018-07-30 14:16:58 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-30 14:16:58 +0100 |
commit | 3b6a6f6673041cf9ee315c00f9b0e24e2c067091 (patch) | |
tree | 001e556601e9dd37556338f877759466846c7af0 /src/parser | |
parent | d39198490f878a9ae395af1cf923fb7375de4548 (diff) |
Add render test functionality
Diffstat (limited to 'src/parser')
-rw-r--r-- | src/parser/grammar/expressions.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/grammar/expressions.rs b/src/parser/grammar/expressions.rs index 2145b8d8b..40f41535e 100644 --- a/src/parser/grammar/expressions.rs +++ b/src/parser/grammar/expressions.rs | |||
@@ -1,5 +1,9 @@ | |||
1 | use super::*; | 1 | use super::*; |
2 | 2 | ||
3 | // test expr_literals | ||
4 | // fn foo() { | ||
5 | // let _ = 92; | ||
6 | // } | ||
3 | pub(super) fn literal(p: &mut Parser) -> bool { | 7 | pub(super) fn literal(p: &mut Parser) -> bool { |
4 | match p.current() { | 8 | match p.current() { |
5 | TRUE_KW | FALSE_KW | INT_NUMBER | FLOAT_NUMBER | BYTE | CHAR | STRING | RAW_STRING | 9 | TRUE_KW | FALSE_KW | INT_NUMBER | FLOAT_NUMBER | BYTE | CHAR | STRING | RAW_STRING |