Skip to content

Commit

Permalink
fix PHP classes with underscore character
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Ešler committed Dec 17, 2018
1 parent 77060a0 commit 7e1cb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ color brightblue "([a-zA-Z0-9_-]*)\("
# Constructs
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 brightblue "[a-zA-Z0-9]+:"
color brightblue "[a-zA-Z0-9_]+:"
# Variables
color white "\$[a-zA-Z_0-9$]*|[=!<>]"
color white "\->[a-zA-Z_0-9$]*|[=!<>]"
Expand Down

0 comments on commit 7e1cb42

Please sign in to comment.