aboutsummaryrefslogtreecommitdiff
path: root/grammars/c.bp
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-07-19 19:40:43 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-07-19 19:40:43 -0700
commit711fe47a7f651f38e090c9a20ecef11feba6f705 (patch)
tree98a3283e7c630919a08f8bd95326ceeb1a93da9e /grammars/c.bp
parent62e7d654bd70db89cb38e5d9efeb9a9b0e9cf202 (diff)
Overhaul of word boundaries/edges. Now they use \b, which is implemented
in C, and the C code understands UTF8 id chars.
Diffstat (limited to 'grammars/c.bp')
-rw-r--r--grammars/c.bp4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammars/c.bp b/grammars/c.bp
index 9940ffe..36f580b 100644
--- a/grammars/c.bp
+++ b/grammars/c.bp
@@ -17,5 +17,5 @@ keyword:
"volatile" / "while"
function-def: ^_ 2+(id / keyword / `*) % __ parens (__`; / >(__`{))
function: function-def __ braces
-macro: ^{#define} ..$ *(<`\ \n..$)
-import: ^{#include} __ (string / `<..`>)
+macro: ^"#define"} ..$ *(<`\ \n..$)
+import: ^"#include"} __ (string / `<..`>)