syntax: javascript: add some keywords, and sort them more logically
Also, remove angle-bracketed "strings" -- they don't exist.
Этот коммит содержится в:
родитель
1b5b52d2e4
Коммит
f769465284
@ -4,12 +4,12 @@ syntax "javascript" "\.js$"
|
|||||||
comment "//"
|
comment "//"
|
||||||
|
|
||||||
color green "\<(async|class|const|extends|function|let|this|typeof|var|void)\>"
|
color green "\<(async|class|const|extends|function|let|this|typeof|var|void)\>"
|
||||||
color brightyellow "\<(for|if|while|with|do|else|case|default|switch)\>"
|
color brightyellow "\<(do|while|if|else|switch|case|default|for|each|in|of|with)\>"
|
||||||
color brightyellow "\<(await|export|import|try|throw|catch|new|delete)\>"
|
color brightyellow "\<(await|export|import|throw|try|catch|finally|new|delete)\>"
|
||||||
color magenta "\<(continue|break|return|yield)\>"
|
color magenta "\<(break|continue|return|yield)\>"
|
||||||
|
|
||||||
# Strings.
|
# Strings.
|
||||||
color brightmagenta "<[^= ]*>" ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`"
|
color brightmagenta ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`"
|
||||||
# Comments.
|
# Comments.
|
||||||
color brightblue "(^|[[:space:]])//.*"
|
color brightblue "(^|[[:space:]])//.*"
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user