aboutsummaryrefslogtreecommitdiff
path: root/spec/lexspec.json
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-06-30 23:44:50 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-06-30 23:54:01 +0900
commitb8b71860d7df5d06dd8a2b9ac62035e8ba8778a7 (patch)
treec0075cd6813085401dbaf44e62ca14ec2b93d30c /spec/lexspec.json
parentAdd testing for the driver (diff)
downloadurubu-b8b71860d7df5d06dd8a2b9ac62035e8ba8778a7.tar.gz
urubu-b8b71860d7df5d06dd8a2b9ac62035e8ba8778a7.tar.xz
Simplify syntax of modifiers and semantic actions
Modifiers and semantic actions are represented by directives following the '#' symbol.
Diffstat (limited to 'spec/lexspec.json')
-rw-r--r--spec/lexspec.json8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/lexspec.json b/spec/lexspec.json
index 76fb0e9..6d1dd93 100644
--- a/spec/lexspec.json
+++ b/spec/lexspec.json
@@ -31,7 +31,7 @@
},
{
"kind": "newline",
- "pattern": "\\f{newline}"
+ "pattern": "\\f{newline}+"
},
{
"kind": "line_comment",
@@ -79,11 +79,7 @@
"pattern": ";"
},
{
- "kind": "modifier_marker",
- "pattern": "@"
- },
- {
- "kind": "action_leader",
+ "kind": "directive_marker",
"pattern": "#"
},
{