mirror of
https://github.com/scopatz/nanorc
synced 2024-11-30 21:55:54 +01:00
* PHP: Fix highlighting of special values
This commit is contained in:
parent
1aa64a86cf
commit
723fffd7ee
|
@ -5,7 +5,7 @@ comment "//"
|
||||||
color white start="<\?(php|=)?" end="\?>"
|
color white start="<\?(php|=)?" end="\?>"
|
||||||
# Constructs
|
# Constructs
|
||||||
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
|
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_]+:"
|
color brightblue "[a-zA-Z0-9_]+:"
|
||||||
# Variables
|
# Variables
|
||||||
color green "\$[a-zA-Z_0-9$]*|[=!<>]"
|
color green "\$[a-zA-Z_0-9$]*|[=!<>]"
|
||||||
|
@ -14,7 +14,7 @@ color green "\->[a-zA-Z_0-9$]*|[=!<>]"
|
||||||
color brightblue "([a-zA-Z0-9_-]*)\("
|
color brightblue "([a-zA-Z0-9_-]*)\("
|
||||||
# Special values
|
# 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)$"
|
||||||
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
|
# Special Characters
|
||||||
color yellow "[.,{}();]"
|
color yellow "[.,{}();]"
|
||||||
color cyan "\["
|
color cyan "\["
|
||||||
|
|
Loading…
Reference in New Issue
Block a user