diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-10 23:46:46 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-10 23:46:46 -0700 |
| commit | 17dbe5d9e8fcbe2c5f2f494658868b28857a25ca (patch) | |
| tree | b5fafea0caac649ab93c273e1d81f476a13624fc /grammars/c++.bp | |
| parent | 943aa0b71a8c2a03fe4b57317d4c7bc7df7d014c (diff) | |
Added {word} feature and cleaned up the code some.
Diffstat (limited to 'grammars/c++.bp')
| -rw-r--r-- | grammars/c++.bp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grammars/c++.bp b/grammars/c++.bp index e8be4db..33e3fb7 100644 --- a/grammars/c++.bp +++ b/grammars/c++.bp @@ -25,5 +25,5 @@ keyword: |( )| function-def: ^_ 2+(keyword / id / anglebraces / `*) % __ parens (__`; / >(__`{)) function: function-def __ braces -macro: ^"#define " ..$ *(<`\ \n..$) -import: ^("#include"/"#import")| __ (string / `<..`>) +macro: ^{#define} ..$ *(<`\ \n..$) +import: ^({#include}/{#import}) __ (string / `<..`>) |
