Ticket #3293: add YAML syntax highlighting.

This commit is contained in:
Roman Belda 2016-12-04 17:55:54 +03:00 committed by Andrew Borodin
parent 76849655ba
commit 055a8c6a4f
3 changed files with 21 additions and 0 deletions

View File

@ -82,6 +82,7 @@ SYNTAXFILES = \
vhdl.syntax \
xml.syntax \
yum-repo.syntax \
yaml.syntax \
yxx.syntax
if USE_INTERNAL_EDIT

View File

@ -271,5 +271,8 @@ include cuda.syntax
file .\*\\.(cl)$ OpenCL\sProgram
include opencl.syntax
file ..\*\\.(yml|YML)$ YAML\sFile
include yaml.syntax
file .\* unknown
include unknown.syntax

17
misc/syntax/yaml.syntax Normal file
View File

@ -0,0 +1,17 @@
# YAML syntax highlighting
#
# Author: Roman Belda <romanbelda.cz@gmail.com>
# http://romanbelda.cz
caseinsensitive
context default brown
keyword #*\n green
keyword {{*}} brightred
keyword *: yellow
context " "\n brightgreen
keyword {{*}} brightred
context ' '\n brightgreen
keyword {{*}} brightred