fork
This commit is contained in:
27
langs/js/js.txt
Normal file
27
langs/js/js.txt
Normal file
@ -0,0 +1,27 @@
|
||||
### JAVASCRIPT LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME JavaScript
|
||||
VERSION 1.8
|
||||
|
||||
COMMENT (?default)
|
||||
STRING (?default)
|
||||
REGEX:COMMENT /([^/]|(?<=\\)/)+/[gmiys]
|
||||
|
||||
STATEMENT (?default)
|
||||
RESERVED (?default)|\b(?<![:\.])(?-i:(?alt:reserved.txt))(?![:\.])\b
|
||||
TYPE (?default)
|
||||
MODIFIER (?default)
|
||||
|
||||
# For the <script> tag
|
||||
ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
|
||||
TAG </?\s*script\s*>?
|
||||
ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
|
||||
|
||||
ENTITY (?default)
|
||||
VARIABLE (?default)|\b\s*[A-Za-z_]\w*\s*\:
|
||||
IDENTIFIER (?default)
|
||||
CONSTANT (?default)
|
||||
OPERATOR (?default)
|
||||
SYMBOL (?default)
|
137
langs/js/reserved.txt
Normal file
137
langs/js/reserved.txt
Normal file
@ -0,0 +1,137 @@
|
||||
captureEvents
|
||||
clearInterval
|
||||
releaseEvents
|
||||
defaultStatus
|
||||
clearTimeout
|
||||
outerHeight
|
||||
locationbar
|
||||
pageXoffset
|
||||
setInterval
|
||||
pageYoffset
|
||||
personalbar
|
||||
innerHeight
|
||||
constructor
|
||||
JavaPackage
|
||||
onMousedown
|
||||
onMouseover
|
||||
onMousemove
|
||||
FileUpload
|
||||
outerWidth
|
||||
setTimeout
|
||||
parseFloat
|
||||
innerWidth
|
||||
routeEvent
|
||||
JavaObject
|
||||
scrollbars
|
||||
onDblClick
|
||||
onKeypress
|
||||
onMouseout
|
||||
arguments
|
||||
statusbar
|
||||
navigator
|
||||
Navigator
|
||||
prototype
|
||||
JavaArray
|
||||
JavaClass
|
||||
onKeydown
|
||||
onMouseup
|
||||
debugger
|
||||
scrollTo
|
||||
location
|
||||
Location
|
||||
Packages
|
||||
MimeType
|
||||
parseInt
|
||||
getClass
|
||||
Password
|
||||
navigate
|
||||
Checkbox
|
||||
Textarea
|
||||
Infinity
|
||||
netscape
|
||||
toString
|
||||
isFinite
|
||||
unescape
|
||||
resizeBy
|
||||
resizeTo
|
||||
document
|
||||
onUnload
|
||||
Document
|
||||
scrollBy
|
||||
onChange
|
||||
onSelect
|
||||
onSubmit
|
||||
onUnload
|
||||
menubar
|
||||
history
|
||||
History
|
||||
toolbar
|
||||
confirm
|
||||
onError
|
||||
untaint
|
||||
onFocus
|
||||
unwatch
|
||||
valueOf
|
||||
Element
|
||||
onClick
|
||||
onFocus
|
||||
onKeyup
|
||||
onReset
|
||||
Anchor
|
||||
Select
|
||||
assign
|
||||
status
|
||||
frames
|
||||
moveBy
|
||||
Button
|
||||
moveTo
|
||||
callee
|
||||
Hidden
|
||||
Submit
|
||||
caller
|
||||
Plugin
|
||||
prompt
|
||||
Number
|
||||
closed
|
||||
RegExp
|
||||
onBlur
|
||||
onLoad
|
||||
scroll
|
||||
typeof
|
||||
window
|
||||
opener
|
||||
delete
|
||||
escape
|
||||
length
|
||||
Option
|
||||
onBlur
|
||||
onLoad
|
||||
alert
|
||||
focus
|
||||
Frame
|
||||
print
|
||||
taint
|
||||
Image
|
||||
Radio
|
||||
close
|
||||
isNan
|
||||
Reset
|
||||
watch
|
||||
eval
|
||||
Link
|
||||
Area
|
||||
find
|
||||
Form
|
||||
Math
|
||||
blur
|
||||
stop
|
||||
home
|
||||
Text
|
||||
Date
|
||||
java
|
||||
open
|
||||
name
|
||||
NaN
|
||||
sun
|
||||
ref
|
||||
top
|
Reference in New Issue
Block a user