* syntax/js.syntax: Advanced number highliting.

This commit is contained in:
Pavel Roskin 2002-09-17 22:43:32 +00:00
parent 8aee83616a
commit a670175b2b
2 changed files with 49 additions and 34 deletions

View File

@ -1,4 +1,8 @@
2002-08-17 Pavel Roskin <proski@gnu.org>
2002-09-17 Vlad Romanenko <VladRomanenko@ukr.net>
* syntax/js.syntax: Advanced number highliting.
2002-09-17 Pavel Roskin <proski@gnu.org>
* syntax/c.syntax: Highlight "?" by the same color as ":".
* syntax/java.syntax: Likewise.
@ -17,7 +21,7 @@
be explicitly enabled by `--with-glib2'.
From Ali Akcaagac <ali.akcaagac@stud.fh-wilhelmshaven.de>
2002-08-16 Pavel Roskin <proski@gnu.org>
2002-09-16 Pavel Roskin <proski@gnu.org>
* syntax/js.syntax: New file.
* syntax/Syntax: Add js.syntax.

View File

@ -9,8 +9,12 @@
# Highlight JS regexpressions /../
# More built-in functions
#
# 2002-09-17 Vlad Romanenko <VladRomanenko@ukr.net>
# * More C and Java consistency by Pavel Roskin <proski@gnu.org>.
# * Advanced number highliting.
#
# 2002-09-16 Vlad Romanenko <VladRomanenko@ukr.net>
# * Initial public release
# * Initial public release.
#
context default
@ -89,8 +93,16 @@ context default
#=========================
# Numbers
keyword whole -\{012345679\}\[012345679\] brightgreen/16
keyword whole \{012345679\}\[012345679\] brightgreen/16
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.
keyword whole 0\{xX\}\{0123456789abcdefABCDEF\}\[0123456789abcdefABCDEF\] brightgreen/16
keyword whole \{0123456789\}\[0123456789\] brightgreen/16
keyword whole \[0123456789\]\.\{0123456789\}\[0123456789\] brightgreen/16
keyword whole \{0123456789\}\[0123456789\]\.\[0123456789\] brightgreen/16
keyword whole \{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen/16
keyword whole \{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen/16
keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen/16
keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen/16
#=========================
# Special symbols
@ -110,16 +122,13 @@ context default
keyword < yellow/24
#=========================
# Parentheses
# Separators
keyword { brightcyan/14
keyword } brightcyan/14
keyword ( brightcyan/14
keyword ) brightcyan/14
keyword [ brightcyan/14
keyword ] brightcyan/14
#=========================
# Separators
keyword , brightcyan/14
keyword ? brightcyan/14
keyword : brightcyan/14
@ -131,20 +140,28 @@ context default
context exclusive /\* \*/ brown/22
spellcheck
keyword whole BUG brightred/18
keyword whole FixMe brightred/18
keyword whole FIXME brightred/18
keyword whole Note brightred/18
keyword whole NOTE brightred/18
keyword whole ToDo brightred/18
keyword whole TODO brightred/18
keyword !!! brightred/18
keyword !! brightred/18
keyword ??? brightred/18
keyword ?? brightred/18
keyword !!\[!\] brightred/18
keyword ??\[?\] brightred/18
context exclusive // \n brown/22
spellcheck
keyword whole BUG brightred/18
keyword whole FixMe brightred/18
keyword whole FIXME brightred/18
keyword whole Note brightred/18
keyword whole NOTE brightred/18
keyword whole ToDo brightred/18
keyword whole TODO brightred/18
keyword !!! brightred/18
keyword !! brightred/18
keyword ??? brightred/18
keyword ?? brightred/18
keyword !!\[!\] brightred/18
keyword ??\[?\] brightred/18
#=============================
@ -152,20 +169,14 @@ context exclusive // \n brown/22
context " " green/6
spellcheck
keyword \\" brightgreen/16
keyword \\' brightgreen/16
keyword \\\\ brightgreen/16
keyword \\\{abtnvfr\} brightgreen/16
keyword \\\{\\'"abtnvfr\} brightgreen/16
keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen/16
keyword ' brightgreen/16
context ' ' green/6
spellcheck
keyword \\" brightgreen/16
keyword \\' brightgreen/16
keyword \\\\ brightgreen/16
keyword \\\{abtnvfr\} brightgreen/16
keyword \\\{\\'"abtnvfr\} brightgreen/16
keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen/16
keyword " brightgreen/16