Commit c830b8f5 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

syntax: php: recognize also the .phtml and .php7 extensions

(And in the bargain sort or group some of the keywords.)

This addresses https://savannah.gnu.org/patch/?9342

.
Suggested-by: default avatarM <taur@mail.com>
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
## Here is an example for PHP. ## Here is an example for PHP.
syntax "php" "\.php[2345s~]?$" syntax "php" "\.ph(p[23457s~]?|tml)$"
magic "PHP script text" magic "PHP script text"
comment "//" comment "//"
...@@ -11,13 +11,13 @@ color brightgreen "(<\?(php)?|\?>)" ...@@ -11,13 +11,13 @@ color brightgreen "(<\?(php)?|\?>)"
color white "\<[a-z_]*\(" color white "\<[a-z_]*\("
# Types. # Types.
color green "\<(var|float|global|double|bool|char|int|enum|const)\>" color green "\<(bool|char|const|double|enum|float|global|int|var)\>"
# Structure. # Structure.
color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>" color brightyellow "\<(class|function|new|private|protected|public|for|foreach|while|do|if|else|elseif|switch|case|default)\>"
# Control flow. # Control flow.
color magenta "\<(goto|continue|break|return)\>" color magenta "\<(break|continue|goto|return)\>"
# Strings. # Strings.
color brightyellow "<[^= ]*>" ""(\.|[^"])*"" color brightyellow "<[^= ]*>" ""(\.|[^"])*""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment