mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #3293: add YAML syntax highlighting.
This commit is contained in:
parent
76849655ba
commit
055a8c6a4f
@ -82,6 +82,7 @@ SYNTAXFILES = \
|
||||
vhdl.syntax \
|
||||
xml.syntax \
|
||||
yum-repo.syntax \
|
||||
yaml.syntax \
|
||||
yxx.syntax
|
||||
|
||||
if USE_INTERNAL_EDIT
|
||||
|
@ -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
17
misc/syntax/yaml.syntax
Normal 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
|
Loading…
Reference in New Issue
Block a user