aboutsummaryrefslogtreecommitdiff
path: root/grammars/c++.bp
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-07-30 20:23:18 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-07-30 20:23:18 -0700
commit9c05f880b00065abfa6f8c9335a50522b76a4fa2 (patch)
tree854087e78104fb3200ae2120f3848794d9445a92 /grammars/c++.bp
parenta6d6e39f3faa83a9e9e5fdd0649da1e6a0655353 (diff)
Added | as alias for \b
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 333e9f3..1814320 100644
--- a/grammars/c++.bp
+++ b/grammars/c++.bp
@@ -24,5 +24,5 @@ keyword:
"unsigned" / "using" / "virtual" / "void" / "volatile" / "wchar_t" / "while" / "xor" / "xor_eq"
function-def: ^_ 2+(id / keyword / anglebraces / `*) % __ parens (__`; / >(__`{))
function: function-def __ braces
-macro: ^"#define"\b ..$ *(<`\ \n..$)
-import: ^`#("include"/"import")\b __ (string / `<..`>)
+macro: ^"#define"| ..$ *(<`\ \n..$)
+import: ^`#("include"/"import")| __ (string / `<..`>)