]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/asciidoc.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / asciidoc.yaml
index ce72a8d2c79f17d999e82e111095a099b92880dc..fcf5f28761fe84e37da860751b907e6c001ef523 100644 (file)
@@ -4,30 +4,48 @@ detect:
     filename: "\\.(asc|asciidoc|adoc)$"
 
 rules:
-    - red: "^====+$"
-    - red: "^==[[:space:]].*$"
-    - red: "^----+$"
-    - magenta: "^===[[:space:]].*$"
-    - magenta: "^~~~~+$"
-    - green: "^====[[:space:]].*$"
-    - green: "^\\^\\^\\^\\^+$"
-    - brightblue: "^=====[[:space:]].*$"
-    - brightblue: "^\\+\\+\\+\\++$"
-    - brightgreen: ":.*:"
-    - brightred: "\\{[a-z0-9]*\\}"
-    - red: "\\\\\\{[a-z0-9]*\\}"
-    - red: "\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+"
-    - yellow: "^\\..*$"
-    - magenta: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
-    - yellow: ".*[[:space:]]\\+$"
-    - yellow: "_[^_]+_"
-    - yellow: "\\*[^\\*]+\\*"
-    - yellow: "\\+[^\\+]+\\+"
-    - yellow: "`[^`]+`"
-    - yellow: "\\^[^\\^]+\\^"
-    - yellow: "~[^~]+~"
-    - yellow: "'[^']+'"
-    - cyan: "`{1,2}[^']+'{1,2}"
-    - brightmagenta: "^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]"
-    - brightwhite: "\\[\\[.*\\]\\]"
-    - brightwhite: "<<.*>>"
+    # main header
+    - preproc: "^====+$"
+      # h1
+    - statement: "^==[[:space:]].*$"
+    - statement: "^----+$"
+      # h2
+    - symbol: "^===[[:space:]].*$"
+    - symbol: "^~~~~+$"
+      # h4
+    - type: "^====[[:space:]].*$"
+    - type: "^\\^\\^\\^\\^+$"
+      # h5
+    - constant: "^=====[[:space:]].*$"
+    - constant: "^\\+\\+\\+\\++$"
+
+      # attributes
+    - type.keyword: ":.*:"
+    - identifier.macro: "\\{[a-z0-9]*\\}"
+    - identifier: "\\\\\\{[a-z0-9]*\\}"
+    - identifier: "\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+"
+
+      # Paragraph Title
+    - statement: "^\\..*$"
+
+      # source 
+    - identifier: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
+
+      # Other markup
+    - constant.string: ".*[[:space:]]\\+$"
+    - constant.string: "_[^_]+_"
+    - constant.string: "\\*[^\\*]+\\*"
+    - constant.string: "\\+[^\\+]+\\+"
+    - constant.string: "`[^`]+`"
+    - constant.string: "\\^[^\\^]+\\^"
+    - constant.string: "~[^~]+~"
+    - constant.string: "'[^']+'"
+
+    - constant: "`{1,2}[^']+'{1,2}"
+
+      # bullets
+    - symbol: "^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]"
+
+      # anchors
+    - "bold default": "\\[\\[.*\\]\\]"
+    - "bold default": "<<.*>>"