about summary refs log tree commit diff stats
path: root/atom
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-28 18:40:44 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-28 18:40:44 -0800
commitdc6bd625f2ac8e67b7507431ab4fa6f72e5fd5bb (patch)
treec6acd503667447c046a60a01cb006d549fcaf339 /atom
parentbc81e7719770c903930899285ba6b7e96a9c70e3 (diff)
downloadmu-dc6bd625f2ac8e67b7507431ab4fa6f72e5fd5bb.tar.gz
5839 - colors for comments and string literals
Diffstat (limited to 'atom')
-rw-r--r--atom/grammars/subx.json18
-rw-r--r--atom/styles/styles.less15
2 files changed, 32 insertions, 1 deletions
diff --git a/atom/grammars/subx.json b/atom/grammars/subx.json
index d75ddda6..8ba8c077 100644
--- a/atom/grammars/subx.json
+++ b/atom/grammars/subx.json
@@ -4,10 +4,26 @@
     "fileTypes": ["subx"],
     "patterns": [
         {
-            "name": "comment.line.subx",
+            "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-[^ ]*:"
         },
diff --git a/atom/styles/styles.less b/atom/styles/styles.less
index e1a749a3..7aa18ef7 100644
--- a/atom/styles/styles.less
+++ b/atom/styles/styles.less
@@ -1,5 +1,20 @@
 atom-text-editor.editor {
   .syntax--source.syntax--subx {
+    .syntax--header-comment.syntax--subx {
+      color: #ccccff;
+    }
+    .syntax--comment-sub-1.syntax--subx {
+      color: #888888;
+    }
+    .syntax--comment-sub-2.syntax--subx {
+      color: #666666;
+    }
+    .syntax--comment.syntax--subx {
+      color: #8888ff;
+    }
+    .syntax--strings.syntax--subx {
+      color: cyan;
+    }
     .syntax--function.syntax--subx {
       color: orange;
     }