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,9 +4,25 @@ "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; }