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:
parent
c8e328c847
commit
aaee778ba5
2
c.nanorc
2
c.nanorc
@ -1,6 +1,6 @@
|
|||||||
## Here is an example for C/C++.
|
## 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)"
|
magic "^(C|C\+\+) (source|program)"
|
||||||
comment "//"
|
comment "//"
|
||||||
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
## Here is an example for xml files.
|
## 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=.*\?>"
|
header "<\?xml.*version=.*\?>"
|
||||||
magic "(XML|SGML) (sub)?document"
|
magic "(XML|SGML) (sub)?document"
|
||||||
comment "<!--|-->"
|
comment "<!--|-->"
|
||||||
|
Loading…
Reference in New Issue
Block a user