aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen/rust.ungram
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-31 17:16:08 +0100
committerAleksey Kladov <[email protected]>2020-07-31 17:16:08 +0100
commit8d28289d0f83225672fc42abcf684364582e73c5 (patch)
treee0f799de029415f478ce5365861ad9f1403de49b /xtask/src/codegen/rust.ungram
parent7980a7e19a679e0bc128f2c142609f7f4a197bf6 (diff)
Specify literal tokens
Diffstat (limited to 'xtask/src/codegen/rust.ungram')
-rw-r--r--xtask/src/codegen/rust.ungram8
1 files changed, 7 insertions, 1 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 8edabc3b9..bc1dd6761 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -239,7 +239,13 @@ Expr =
239| WhileExpr 239| WhileExpr
240 240
241Literal = 241Literal =
242 Attr* 'int_number' 242 Attr* value:(
243 'int_number' | 'float_number'
244 | 'string' | 'raw_string'
245 | 'byte_string' | 'raw_byte_string'
246 | 'true' | 'false'
247 | 'char' | 'byte'
248 )
243 249
244PathExpr = 250PathExpr =
245 Attr* Path 251 Attr* Path