about summary refs log tree commit diff stats
path: root/editor/atom/grammars/subx.json
diff options
context:
space:
mode:
Diffstat (limited to 'editor/atom/grammars/subx.json')
-rw-r--r--editor/atom/grammars/subx.json43
1 files changed, 43 insertions, 0 deletions
diff --git a/editor/atom/grammars/subx.json b/editor/atom/grammars/subx.json
new file mode 100644
index 00000000..8ba8c077
--- /dev/null
+++ b/editor/atom/grammars/subx.json
@@ -0,0 +1,43 @@
+{
+    "scopeName": "source.subx",
+    "name": "SubX",
+    "fileTypes": ["subx"],
+    "patterns": [
+        {
+            "name": "header-comment.subx",
+            "match": "# - .*"
+        },
+        {
+            "name": "comment-sub-2.subx",
+            "match": "# \\. \\. .*"
+        },
+        {
+            "name": "comment-sub-1.subx",
+            "match": "# \\. .*"
+        },
+        {
+            "name": "comment.subx",
+            "match": "#.*"
+        },
+        {
+            "name": "strings.subx",
+            "match": "\"[^\"]*\""
+        },
+        {
+            "name": "test.subx",
+            "match": "^test-[^ ]*:"
+        },
+        {
+            "name": "global.subx",
+            "match": "^[A-Z][^ ]*:"
+        },
+        {
+            "name": "function.subx",
+            "match": "^[^_$ #][^ ]*:"
+        },
+        {
+            "name": "label.subx",
+            "match": "^[_$][^ ]*:"
+        }
+    ]
+}