mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
Merge pull request #12 from iarna/improve-javascript
Improve javascript
This commit is contained in:
commit
8340b64b22
58
js.jsf
58
js.jsf
@ -12,6 +12,8 @@
|
|||||||
=Escape bold cyan
|
=Escape bold cyan
|
||||||
=Type bold
|
=Type bold
|
||||||
=Keyword bold
|
=Keyword bold
|
||||||
|
=Global bold
|
||||||
|
=Exports bold black
|
||||||
=Operator bold
|
=Operator bold
|
||||||
=Bad inverse bold red
|
=Bad inverse bold red
|
||||||
=Brace magenta
|
=Brace magenta
|
||||||
@ -226,45 +228,95 @@
|
|||||||
* ident_end noeat markend strings
|
* ident_end noeat markend strings
|
||||||
"arguments" kw
|
"arguments" kw
|
||||||
"Array" type
|
"Array" type
|
||||||
|
"ArrayBuffer" type
|
||||||
"break" kw
|
"break" kw
|
||||||
"Boolean" type
|
"Boolean" type
|
||||||
"case" kw
|
"case" kw
|
||||||
"catch" kw
|
"catch" kw
|
||||||
|
"const" global
|
||||||
"continue" kw
|
"continue" kw
|
||||||
|
"DataView" type
|
||||||
|
"decodeURI" global
|
||||||
|
"decodeURIComponent" global
|
||||||
"default" kw
|
"default" kw
|
||||||
"delete" operator
|
"delete" operator
|
||||||
"do" kw
|
"do" kw
|
||||||
"Date" type
|
"Date" type
|
||||||
"else" kw
|
"else" kw
|
||||||
|
"encodeURI" global
|
||||||
|
"encodeURIComponent" global
|
||||||
|
"Error" type
|
||||||
|
"escape" global
|
||||||
|
"eval" global
|
||||||
|
"EvalError" type
|
||||||
"false" lit
|
"false" lit
|
||||||
"finally" kw
|
"finally" kw
|
||||||
"for" kw
|
"for" kw
|
||||||
"function" kw
|
"function" kw
|
||||||
"Function" type
|
"Function" type
|
||||||
|
"Float32Array" type
|
||||||
|
"Float64Array" type
|
||||||
"if" kw
|
"if" kw
|
||||||
"in" kw
|
"in" kw
|
||||||
|
"Infinity" lit
|
||||||
"instanceof" operator
|
"instanceof" operator
|
||||||
|
"Int16Array" type
|
||||||
|
"Int32Array" type
|
||||||
|
"Int8Array" type
|
||||||
|
"isFinite" global
|
||||||
|
"isNaN" global
|
||||||
|
"JSON" type
|
||||||
"let" kw
|
"let" kw
|
||||||
|
"Math" type
|
||||||
|
"NaN" lit
|
||||||
"new" operator
|
"new" operator
|
||||||
"null" lit
|
"null" lit
|
||||||
"Number" type
|
"Number" type
|
||||||
"Object" type
|
"Object" type
|
||||||
|
"parseFloat" global
|
||||||
|
"parseInt" global
|
||||||
"return" kw
|
"return" kw
|
||||||
|
"RangeError" type
|
||||||
|
"ReferenceError" type
|
||||||
"RegExp" type
|
"RegExp" type
|
||||||
"switch" kw
|
"switch" kw
|
||||||
"String" type
|
"String" type
|
||||||
|
"SyntaxError" type
|
||||||
"this" kw
|
"this" kw
|
||||||
"throw" kw
|
"throw" kw
|
||||||
"true" lit
|
"true" lit
|
||||||
"try" kw
|
"try" kw
|
||||||
"typeof" operator
|
"typeof" operator
|
||||||
|
"TypeError" type
|
||||||
|
"Uint16Array" type
|
||||||
|
"Uint32Array" type
|
||||||
|
"Uint8Array" type
|
||||||
|
"Uint8ClampedArray" type
|
||||||
"undefined" lit
|
"undefined" lit
|
||||||
|
"unescape" global
|
||||||
|
"URIError" type
|
||||||
"var" kw
|
"var" kw
|
||||||
"void" kw
|
"void" kw
|
||||||
"while" kw
|
"while" kw
|
||||||
"with" kw
|
"with" kw
|
||||||
# quasi-keywords
|
# quasi-keywords
|
||||||
"prototype" kw
|
"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
|
done
|
||||||
"a-zA-Z0-9_" ident
|
"a-zA-Z0-9_" ident
|
||||||
|
|
||||||
@ -274,6 +326,12 @@ done
|
|||||||
:kw Keyword
|
:kw Keyword
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
|
||||||
|
:global Global
|
||||||
|
* idle noeat
|
||||||
|
|
||||||
|
:export Exports
|
||||||
|
* idle noeat
|
||||||
|
|
||||||
:lit Constant
|
:lit Constant
|
||||||
* after_term noeat
|
* after_term noeat
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user