From 711fe47a7f651f38e090c9a20ecef11feba6f705 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 19 Jul 2021 19:40:43 -0700 Subject: Overhaul of word boundaries/edges. Now they use \b, which is implemented in C, and the C code understands UTF8 id chars. --- grammars/c++.bp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grammars/c++.bp') diff --git a/grammars/c++.bp b/grammars/c++.bp index 1553bb3..30f47aa 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} ..$ *(<`\ \n..$) -import: ^({#include}/{#import}) __ (string / `<..`>) +macro: ^"#define"} ..$ *(<`\ \n..$) +import: ^("#include"}/"#import"}) __ (string / `<..`>) -- cgit v1.2.3