1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-21 16:15:40 +01:00

- syntax: Add a few more file endings

This commit is contained in:
Zach DeCook 2019-12-18 22:08:43 -05:00
parent c8e328c847
commit aaee778ba5
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
## Here is an example for C/C++.
##
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino"
magic "^(C|C\+\+) (source|program)"
comment "//"
color brightred "\<[A-Z_][0-9A-Z_]+\>"

View File

@ -1,7 +1,7 @@
## Here is an example for xml files.
##
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|mei|musicxml)$"
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$"
header "<\?xml.*version=.*\?>"
magic "(XML|SGML) (sub)?document"
comment "<!--|-->"