@@ -148,40 +148,6 @@ syntax keyword jsDomNodeConsts ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE CDATA_SECT
148
148
" " HTML events and internal variables
149
149
syntax keyword jsHtmlEvents onblur onclick oncontextmenu ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onresize
150
150
151
- " Following stuff should be highligh within a special context
152
- " While it can't be handled with context depended with Regex based highlight
153
- " So, turn it off by default
154
- " TODO: Can we just remove this?
155
- if exists (" javascript_enable_domhtmlcss" )
156
-
157
- " DOM2 things
158
- syntax match jsDomElemAttrs contained / \% (nodeName\| nodeValue\| nodeType\| parentNode\| childNodes\| firstChild\| lastChild\| previousSibling\| nextSibling\| attributes\| ownerDocument\| namespaceURI\| prefix\| localName\| tagName\)\> /
159
- syntax match jsDomElemFuncs contained / \% (insertBefore\| replaceChild\| removeChild\| appendChild\| hasChildNodes\| cloneNode\| normalize\| isSupported\| hasAttributes\| getAttribute\| setAttribute\| removeAttribute\| getAttributeNode\| setAttributeNode\| removeAttributeNode\| getElementById\| getElementsByClassName\| getElementsByTagName\| querySelector\| querySelectorAll\| getAttributeNS\| setAttributeNS\| removeAttributeNS\| getAttributeNodeNS\| setAttributeNodeNS\| getElementsByTagNameNS\| hasAttribute\| hasAttributeNS\)\> / nextgroup =jsParen skipwhite
160
- " HTML things
161
- syntax match jsHtmlElemAttrs contained / \% (className\| clientHeight\| clientLeft\| clientTop\| clientWidth\| dir\| id\| innerHTML\| lang\| length\| offsetHeight\| offsetLeft\| offsetParent\| offsetTop\| offsetWidth\| scrollHeight\| scrollLeft\| scrollTop\| scrollWidth\| style\| tabIndex\| title\)\> /
162
- syntax match jsHtmlElemFuncs contained / \% (blur\| click\| focus\| scrollIntoView\| addEventListener\| dispatchEvent\| removeEventListener\| item\)\> / nextgroup =jsParen skipwhite
163
-
164
- " CSS Styles in JavaScript
165
- syntax keyword jsCssStyles contained color font fontFamily fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontWeight letterSpacing lineBreak lineHeight quotes rubyAlign rubyOverhang rubyPosition
166
- syntax keyword jsCssStyles contained textAlign textAlignLast textAutospace textDecoration textIndent textJustify textJustifyTrim textKashidaSpace textOverflowW6 textShadow textTransform textUnderlinePosition
167
- syntax keyword jsCssStyles contained unicodeBidi whiteSpace wordBreak wordSpacing wordWrap writingMode
168
- syntax keyword jsCssStyles contained bottom height left position right top width zIndex
169
- syntax keyword jsCssStyles contained border borderBottom borderLeft borderRight borderTop borderBottomColor borderLeftColor borderTopColor borderBottomStyle borderLeftStyle borderRightStyle borderTopStyle borderBottomWidth borderLeftWidth borderRightWidth borderTopWidth borderColor borderStyle borderWidth borderCollapse borderSpacing captionSide emptyCells tableLayout
170
- syntax keyword jsCssStyles contained margin marginBottom marginLeft marginRight marginTop outline outlineColor outlineStyle outlineWidth padding paddingBottom paddingLeft paddingRight paddingTop
171
- syntax keyword jsCssStyles contained listStyle listStyleImage listStylePosition listStyleType
172
- syntax keyword jsCssStyles contained background backgroundAttachment backgroundColor backgroundImage backgroundPosition backgroundPositionX backgroundPositionY backgroundRepeat
173
- syntax keyword jsCssStyles contained clear clip clipBottom clipLeft clipRight clipTop content counterIncrement counterReset cssFloat cursor direction display filter layoutGrid layoutGridChar layoutGridLine layoutGridMode layoutGridType
174
- syntax keyword jsCssStyles contained marks maxHeight maxWidth minHeight minWidth opacity MozOpacity overflow overflowX overflowY verticalAlign visibility zoom cssText
175
- syntax keyword jsCssStyles contained scrollbar3dLightColor scrollbarArrowColor scrollbarBaseColor scrollbarDarkShadowColor scrollbarFaceColor scrollbarHighlightColor scrollbarShadowColor scrollbarTrackColor
176
-
177
- " Highlight ways
178
- syntax match jsDotNotation " \. " nextgroup =jsPrototype,jsDomElemAttrs,jsDomElemFuncs,jsHtmlElemAttrs,jsHtmlElemFuncs
179
- syntax match jsDotNotation " \. style\. " nextgroup =jsCssStyles
180
-
181
- endif " DOM/HTML/CSS
182
-
183
- " " end DOM/HTML/CSS specified things
184
-
185
151
" " Code blocks
186
152
" TODO: This should really only be for arrays... figure out the array scope better
187
153
syntax region jsBracket matchgroup =jsBrackets start =" \[ " end =" \] " contains =@jsAll,jsParensError,jsBracket,jsParen,jsBlock,@htmlPreproc fold
0 commit comments