1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-12-22 02:54:23 +01:00

Add Node.js globals, quasi-keywords and export highlighting

This commit is contained in:
Rebecca Turner 2014-08-29 16:50:14 -04:00
parent 585f123837
commit a7db2eb736

20
js.jsf
View File

@ -13,6 +13,7 @@
=Type bold
=Keyword bold
=Global bold
=Exports bold black
=Operator bold
=Bad inverse bold red
=Brace magenta
@ -300,6 +301,22 @@
"with" kw
# quasi-keywords
"prototype" kw
# Node.js
"module" global
"exports" export
"process" global
"global" global
"console" global
"setTimeout" global
"setInterval" global
"clearInterval" global
"Buffer" type
# Node.js globals that we'll pretend are keywords
"require" kw
"__filename" kw
"__dirname" kw
# By convention...
"self" kw
done
"a-zA-Z0-9_" ident
@ -312,6 +329,9 @@ done
:global Global
* idle noeat
:export Exports
* idle noeat
:lit Constant
* after_term noeat