aboutsummaryrefslogtreecommitdiff
path: root/grammars/bp.bp
diff options
context:
space:
mode:
Diffstat (limited to 'grammars/bp.bp')
-rw-r--r--grammars/bp.bp3
1 files changed, 2 insertions, 1 deletions
diff --git a/grammars/bp.bp b/grammars/bp.bp
index 68d1ec8..2782934 100644
--- a/grammars/bp.bp
+++ b/grammars/bp.bp
@@ -15,7 +15,7 @@ Def: @name=id __ `: __ (
String-pattern: ..%(\n / Nodent / Identifier-char / Identifier-start / Escape / `\ pat [`;])$$
pat: simple-pat !(__("!~"/"~")) / suffixed-pat
-simple-pat: (Upto-and / Dot / Word-boundary/ String / Chars / Nodent
+simple-pat: (Upto-and / Dot / Word-boundary/ String / Chars / Nodent / Curdent
/ Identifier-char / Identifier-start / Escape-range
/ Escape / Repeat / Optional / No / After / Before / Capture
/ Start-of-File / Start-of-Line / End-of-File / End-of-Line / Ref / parens)
@@ -48,6 +48,7 @@ escape-sequence: (
)
No: `! (__@pat / @error=(=>"Expected a pattern after the exclamation mark"))
Nodent: "\N"
+Curdent: "\C"
Word-boundary: `| / "\b"
Identifier-char: "\i"
Identifier-start: "\I"