Merge pull request #329 from DanteFalzone0/master

Fixed higlighting of inline comments in several languages
This commit is contained in:
Anthony Scopatz 2020-08-27 09:33:16 -05:00 committed by GitHub
commit b20013a049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Comment highlighting
color brightblue "^\s*//.*"
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
# Highlighting for documentation comments

View File

@ -10,7 +10,7 @@ color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interfa
color red ""[^"]*""
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"
color blue "^\s*//.*"
color blue "//.*"
color blue start="^\s*/\*" end="\*/"
color brightblue start="/\*\*" end="\*/"

View File

@ -17,7 +17,7 @@ color green "\<(Number|Object|RegExp|String)\>"
color red "[-+/*=<>!~%?:&|]"
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
color brightblack "(^|[[:space:]])//.*"
color brightblack "//.*"
color brightblack "/\*.+\*/"
color brightwhite,cyan "TODO:?"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"