Imported Upstream version 2.3.1
[platform/upstream/nano.git] / doc / syntax / php.nanorc
1 ## Here is an example for PHP
2 ##
3 syntax "php" "\.php[2345s~]?$"
4 magic "PHP script text"
5
6 ## php markings
7 color brightgreen "(<\?(php)?|\?>)"
8
9 ## functions
10 color white "\<[a-z_]*\("
11
12 ## types
13 color green "\<(var|float|global|double|bool|char|int|enum|const)\>"
14
15 ## structure
16 color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>"
17
18 ## control flow
19 color magenta "\<(goto|continue|break|return)\>"
20
21 ## strings
22 color brightyellow "<[^=       ]*>" ""(\.|[^"])*""
23
24 ## comments
25 color brightblue "//.*"
26 color brightblue start="/\*" end="\*/"
27 #color blue start="<" end=">"
28 #color red "&[^;[[:space:]]]*;"
29
30 ## Trailing whitespace
31 color ,green "[[:space:]]+$"