syntax: javascript: colorize the boolean values 'true' and 'false' too
Original-patch-by: Ryan Westlund <rlwestlund@gmail.com>
Этот коммит содержится в:
родитель
9151abcd45
Коммит
75dd9bee38
@ -14,7 +14,7 @@ color magenta "\<(break|continue|return|yield)\>"
|
|||||||
# Octal/decimal and hexadecimal numbers.
|
# Octal/decimal and hexadecimal numbers.
|
||||||
color cyan "\<[0-9]+\>" "\<0x[0-9A-Fa-f]+\>"
|
color cyan "\<[0-9]+\>" "\<0x[0-9A-Fa-f]+\>"
|
||||||
# Special values.
|
# Special values.
|
||||||
color cyan "\<(null|undefined)\>"
|
color cyan "\<(true|false|null|undefined)\>"
|
||||||
|
|
||||||
# Strings.
|
# Strings.
|
||||||
color brightmagenta ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`"
|
color brightmagenta ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`"
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user