mirror of
https://github.com/scopatz/nanorc
synced 2025-04-04 21:10:30 +02:00
Merge 065ce0a8d4bad59d68f3e7b326bf4d7390a3b0cb into 1aa64a86cf4c750e4d4788ef1a19d7a71ab641dd
This commit is contained in:
commit
b3437a68d1
@ -5,7 +5,7 @@ comment "//"
|
||||
color white start="<\?(php|=)?" end="\?>"
|
||||
# Constructs
|
||||
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
|
||||
color brightblue "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"
|
||||
color brightblue "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"
|
||||
color brightblue "[a-zA-Z0-9_]+:"
|
||||
# Variables
|
||||
color green "\$[a-zA-Z_0-9$]*|[=!<>]"
|
||||
@ -14,7 +14,7 @@ color green "\->[a-zA-Z_0-9$]*|[=!<>]"
|
||||
color brightblue "([a-zA-Z0-9_-]*)\("
|
||||
# Special values
|
||||
color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)$"
|
||||
color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)[^a-z0-9_-]{1}"
|
||||
color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)[^A-Za-z0-9_-]{1}"
|
||||
# Special Characters
|
||||
color yellow "[.,{}();]"
|
||||
color cyan "\["
|
||||
|
11
xml.nanorc
11
xml.nanorc
@ -7,9 +7,16 @@ magic "(XML|SGML) (sub)?document"
|
||||
comment "<!--|-->"
|
||||
|
||||
color white "^.+$"
|
||||
# Attributes
|
||||
color green start="<" end=">"
|
||||
color cyan "<[^> ]+"
|
||||
color cyan ">"
|
||||
color brightgreen "=\"[^\"]*\""
|
||||
# Opening tags
|
||||
color brightcyan "<[^/][^> ]*"
|
||||
color brightcyan ">"
|
||||
# Closing tags
|
||||
color cyan "</[^> ]*>"
|
||||
# Self-closing part
|
||||
color cyan "/>"
|
||||
color yellow start="<!DOCTYPE" end="[/]?>"
|
||||
color yellow start="<!--" end="-->"
|
||||
color red "&[^;]*;"
|
||||
|
@ -15,7 +15,7 @@ color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
||||
|
||||
# Separator
|
||||
color brightwhite "^\s+-"
|
||||
color brightwhite ":(\s|\t|$)"
|
||||
color brightwhite ":(\s|$)"
|
||||
|
||||
# Comments
|
||||
color brightblue "(^|[[:space:]])#.*$"
|
||||
|
Loading…
x
Reference in New Issue
Block a user