mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 14:40:20 +09:00
Add converted syntax files
This commit is contained in:
16
runtime/syntax/dot.yaml
Normal file
16
runtime/syntax/dot.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
filetype: dot
|
||||
|
||||
detect:
|
||||
filename: "\\.(dot|gv)$"
|
||||
|
||||
rules:
|
||||
- type: "\\b(digraph|edge|graph|node|subgraph)\\b"
|
||||
- statement: "\\b(arrow(head|size|tail)|(bg|fill|font)?color|center|constraint|decorateP|dir|distortion|font(name|size)|head(clip|label)|height|label(angle|distance|font(color|name|size))?|layer(s)?|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|page(dir)?|peripheries|port_label_distance|rank(dir|sep)?|ratio|regular|rotate|same(head|tail)|shape(file)?|sides|size|skew|style|tail(clip|label)|URL|weight|width)\\b"
|
||||
- symbol: "=|->|--"
|
||||
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
||||
- comment: "(^|[[:space:]])//.*"
|
||||
- comment:
|
||||
start: "/\\*"
|
||||
end: "\\*/"
|
||||
rules: []
|
||||
|
||||
Reference in New Issue
Block a user