Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
source-highlight's language definition file for YAML
---/usr/share/source-highlight/lang.map.old
+++/usr/share/source-highlight/lang.map
@@ -169,3 +169,5 @@
groovy = groovy.lang
json = json.lang
feature = feature.lang
+yaml = yaml.lang
+yml = yaml.lang
# source-highlight's language definition file for YAML
include "script_comment.lang"
include "number.lang"
keyword = "true|false|null"
section start '^---'
(symbol,name,symbol) = `(^[[:blank:]-]*)([[:alnum:]_-]+)(:)`
symbol = '^[[:blank:]]*-'
# TODO:
# - heredoc
# - alias indicators
string delim "\"" "\"" escape "\\"
string delim "'" "'" escape "\\"
# vim: ft=conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.