mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
fix PHP classes with underscore character
This commit is contained in:
parent
77060a0ae8
commit
7e1cb42c50
|
@ -6,7 +6,7 @@ color brightblue "([a-zA-Z0-9_-]*)\("
|
||||||
# Constructs
|
# Constructs
|
||||||
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
|
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
|
||||||
color green "[^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 green "[^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-zA-Z0-9]+:"
|
color brightblue "[a-zA-Z0-9_]+:"
|
||||||
# Variables
|
# Variables
|
||||||
color white "\$[a-zA-Z_0-9$]*|[=!<>]"
|
color white "\$[a-zA-Z_0-9$]*|[=!<>]"
|
||||||
color white "\->[a-zA-Z_0-9$]*|[=!<>]"
|
color white "\->[a-zA-Z_0-9$]*|[=!<>]"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user