mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
Merge pull request #329 from DanteFalzone0/master
Fixed higlighting of inline comments in several languages
This commit is contained in:
commit
b20013a049
2
c.nanorc
2
c.nanorc
|
@ -37,7 +37,7 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
|
||||||
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||||
|
|
||||||
## Comment highlighting
|
## Comment highlighting
|
||||||
color brightblue "^\s*//.*"
|
color brightblue "//.*"
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
|
|
||||||
# Highlighting for documentation comments
|
# Highlighting for documentation comments
|
||||||
|
|
|
@ -10,7 +10,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa
|
||||||
color red ""[^"]*""
|
color red ""[^"]*""
|
||||||
color yellow "\<(true|false|null)\>"
|
color yellow "\<(true|false|null)\>"
|
||||||
icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
|
icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
|
||||||
color blue "^\s*//.*"
|
color blue "//.*"
|
||||||
color blue start="^\s*/\*" end="\*/"
|
color blue start="^\s*/\*" end="\*/"
|
||||||
color brightblue start="/\*\*" end="\*/"
|
color brightblue start="/\*\*" end="\*/"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ color green "\<(Number|Object|RegExp|String)\>"
|
||||||
color red "[-+/*=<>!~%?:&|]"
|
color red "[-+/*=<>!~%?:&|]"
|
||||||
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
||||||
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
||||||
color brightblack "(^|[[:space:]])//.*"
|
color brightblack "//.*"
|
||||||
color brightblack "/\*.+\*/"
|
color brightblack "/\*.+\*/"
|
||||||
color brightwhite,cyan "TODO:?"
|
color brightwhite,cyan "TODO:?"
|
||||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user