comparison nanorc.d/php.nanorc @ 86:3f3f641d5a8b

Tidy up some tag oddities
author IBBoard <dev@ibboard.co.uk>
date Mon, 02 Apr 2018 16:47:17 +0100
parents ef08bb127ede
children 7d8c0070471c
comparison
equal deleted inserted replaced
85:ef08bb127ede 86:3f3f641d5a8b
4 magic "PHP script" 4 magic "PHP script"
5 comment "//" 5 comment "//"
6 6
7 # PHP code 7 # PHP code
8 color black start="<\?(php|=)?" end="\?>" 8 color black start="<\?(php|=)?" end="\?>"
9 # PHP tags
10 color brightblue "<\?(php|=)|\?>"
11 9
12 10
13 # Function names. 11 # Function names.
14 #color white "\<[A-Za-z_][A-Za-z_0-9]*\(" 12 #color white "\<[A-Za-z_][A-Za-z_0-9]*\("
15 # Variable names. 13 # Variable names.
31 color magenta "\<(break|continue|goto|return)\>" 29 color magenta "\<(break|continue|goto|return)\>"
32 30
33 # Strings. 31 # Strings.
34 color yellow ""(\.|[^"])*"" "'(\.|[^'])*'" 32 color yellow ""(\.|[^"])*"" "'(\.|[^'])*'"
35 33
34 # Numbers
35 color blue "\b[0-9]+\b"
36
36 # Comments. 37 # Comments.
37 color green "(^|[[:space:]]+)//.*" 38 color green "(^|[[:space:]]+)//.*"
38 color green start="/\*" end="\*/" 39 color green start="/\*" end="\*/"
39 40
40 # General HTML 41 # General HTML
41 color brightblue start="<[a-zA-Z/]" end="[^\?]>" 42 color brightblue start="<[a-zA-Z/]" end=">"
42 color red "&[^;[[:space:]]]*;" 43 color red "&[^;[[:space:]]]*;"
43 color yellow "[a-zA-Z_-]+=["']?[^"']+["']" 44 color yellow "[a-zA-Z_-]+=["']?[^"']+["']"
44 color green start="<!--" end="-->" 45 color green start="<!--" end="-->"
45 color white start="<!DOCTYPE" end=">" 46 color white start="<!DOCTYPE" end=">"
46 # xhtml 47 # xhtml
47 color white start="<\?xml" end="\?>" 48 color white start="<\?xml" end="\?>"
48 49
50 # PHP tags
51 color brightblue "<\?(php|=)|\?>"
49 52
50 # Trailing whitespace. 53 # Trailing whitespace.
51 color ,green "[[:space:]]+$" 54 color ,green "[[:space:]]+$"