aboutsummaryrefslogtreecommitdiff
path: root/spec/lexspec.json
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-05-07 20:41:33 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-05-10 23:14:41 +0900
commit3eb0e88f911386a4e6eca991c1471070596c5554 (patch)
tree4c3ea445a804d781b846739d70392ceb1353ea6d /spec/lexspec.json
parentMake #prec directive change only precedence and not associativity (diff)
downloadcotia-3eb0e88f911386a4e6eca991c1471070596c5554.tar.gz
cotia-3eb0e88f911386a4e6eca991c1471070596c5554.tar.xz
Change syntax for top-level directives
%name changes to: #name example; %left and %right change to: #prec ( #left a b #right c d );
Diffstat (limited to 'spec/lexspec.json')
-rw-r--r--spec/lexspec.json8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/lexspec.json b/spec/lexspec.json
index ff8ff0d..6a11a4a 100644
--- a/spec/lexspec.json
+++ b/spec/lexspec.json
@@ -118,8 +118,12 @@
"pattern": "#"
},
{
- "kind": "metadata_marker",
- "pattern": "%"
+ "kind": "l_paren",
+ "pattern": "\\("
+ },
+ {
+ "kind": "r_paren",
+ "pattern": "\\)"
}
]
}