summaryrefslogtreecommitdiff
path: root/support/highlight/langDefs/bnf.lang
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/highlight/langDefs/bnf.lang
Initial commit
Diffstat (limited to 'support/highlight/langDefs/bnf.lang')
-rw-r--r--support/highlight/langDefs/bnf.lang25
1 files changed, 25 insertions, 0 deletions
diff --git a/support/highlight/langDefs/bnf.lang b/support/highlight/langDefs/bnf.lang
new file mode 100644
index 0000000000..8507ccd867
--- /dev/null
+++ b/support/highlight/langDefs/bnf.lang
@@ -0,0 +1,25 @@
+# BNF language definition file
+#
+# Author: Julien Fontanet
+# Mail: julien.fontanet@isonoe.net
+# Date: 2009-12-06
+# ------------------------------------------
+
+$DESCRIPTION=Backus-Naur Form
+
+$IDENTIFIER=regex([-a-zA-Z_]+|<[-a-zA-Z_]+>)
+
+$KEYWORDS(kwa)=regex(^[ \t]*([-a-zA-Z_]+|<[-a-zA-Z_]+>)\s*[:=])
+
+$IGNORECASE=false
+
+$STRINGDELIMITERS="
+
+$SL_COMMENT=//
+
+$ML_COMMENT=/* */
+
+$ALLOWNESTEDCOMMENTS=false
+
+$SYMBOLS= ( ) [ ] { } | . : =
+