mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Add syntax highlighting files
This commit is contained in:
26
syntax_files/sls.micro
Normal file
26
syntax_files/sls.micro
Normal file
@@ -0,0 +1,26 @@
|
||||
## SaltStack files (*.sls)
|
||||
##
|
||||
|
||||
syntax "Salt" "\.sls$"
|
||||
|
||||
# Anything ending in a colon (:), including things that start with a dash (-)
|
||||
color blue "^[^ -].*:$"
|
||||
color blue ".*:"
|
||||
# Except for salt:// URLs
|
||||
color white "salt:"
|
||||
|
||||
# Numbers, etc
|
||||
color red "/*[0-9]/*"
|
||||
color red "\b(True|False)\b"
|
||||
|
||||
# Anything between two single quotes
|
||||
color green ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
|
||||
# Matching keywords
|
||||
color yellow "\b(grain|grains|compound|pcre|grain_pcre|list|pillar)\b"
|
||||
|
||||
# Comments
|
||||
color brightblack "^#.*"
|
||||
|
||||
# Logic keywords
|
||||
color magenta "\b(if|elif|else|or|not|and|endif|end)\b"
|
||||
Reference in New Issue
Block a user