forked from spox/ultraviolet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved old jquery and haml to broken syntax, bumped version
- Loading branch information
Showing
3 changed files
with
250 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
--- | ||
name: jQuery (JavaScript) | ||
scopeName: source.js.jquery | ||
repository: | ||
nested-parens: | ||
captures: | ||
"0": | ||
name: punctuation.section.scope.js | ||
begin: \( | ||
end: \) | ||
patterns: | ||
- include: "#nested-parens" | ||
- include: source.js | ||
css-selector: | ||
name: meta.selector.css | ||
begin: (?=\s*[.*#a-zA-Z]) | ||
end: (?=["']) | ||
patterns: | ||
- name: entity.name.tag.css | ||
match: \b(a|abbr|acronym|address|area|b|base|big|blockquote|body|br|button|caption|cite|code|col|colgroup|dd|del|dfn|div|dl|dt|em|fieldset|form|frame|frameset|(h[1-6])|head|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|ul|var)\b | ||
- name: entity.other.attribute-name.class.css | ||
captures: | ||
"1": | ||
name: punctuation.definition.attribute-name.css | ||
match: (\.)[a-zA-Z0-9_-]+ | ||
- name: entity.other.attribute-name.id.css | ||
captures: | ||
"1": | ||
name: punctuation.definition.attribute-name.css | ||
match: (#)[a-zA-Z0-9_-]+ | ||
- name: entity.name.tag.wildcard.css | ||
match: \* | ||
- name: entity.other.attribute-name.pseudo-class.css | ||
captures: | ||
"1": | ||
name: punctuation.definition.attribute-name.css | ||
match: (:)\b(active|after|before|first-letter|first-line|hover|link|visited)\b | ||
uuid: 1AD8EB10-62BE-417C-BC4B-29B5C6F0B36A | ||
foldingStartMarker: (^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$) | ||
patterns: | ||
- endCaptures: | ||
"1": | ||
name: punctuation.section.class.js | ||
begin: (\$)(\() | ||
contentName: meta.selector.jquery | ||
beginCaptures: | ||
"1": | ||
name: support.class.js.jquery | ||
"2": | ||
name: punctuation.section.class.js | ||
end: (\)) | ||
patterns: | ||
- include: "#nested-parens" | ||
- endCaptures: | ||
"0": | ||
name: punctuation.definition.selector.end.js | ||
begin: "'" | ||
beginCaptures: | ||
"0": | ||
name: punctuation.definition.selector.begin.js | ||
end: "'" | ||
patterns: | ||
- include: "#css-selector" | ||
- endCaptures: | ||
"0": | ||
name: punctuation.definition.selector.end.js | ||
begin: "\"" | ||
beginCaptures: | ||
"0": | ||
name: punctuation.definition.selector.begin.js | ||
end: "\"" | ||
patterns: | ||
- include: "#css-selector" | ||
- include: source.js | ||
- endCaptures: | ||
"1": | ||
name: punctuation.section.function.js | ||
begin: \b(add|ancestors|appendTo|children|filter|find|insertAfter|insertBefore|next|not|parent|parents|prependTo|prev|remove|siblings)\s*(\() | ||
contentName: meta.selector.jquery | ||
beginCaptures: | ||
"1": | ||
name: support.function.js.jquery | ||
"2": | ||
name: punctuation.section.function.js | ||
end: (\)) | ||
patterns: | ||
- include: "#nested-parens" | ||
- endCaptures: | ||
"0": | ||
name: punctuation.definition.selector.end.js | ||
begin: "'" | ||
beginCaptures: | ||
"0": | ||
name: punctuation.definition.selector.begin.js | ||
end: "'" | ||
patterns: | ||
- include: "#css-selector" | ||
- endCaptures: | ||
"0": | ||
name: punctuation.definition.selector.end.js | ||
begin: "\"" | ||
beginCaptures: | ||
"0": | ||
name: punctuation.definition.selector.begin.js | ||
end: "\"" | ||
patterns: | ||
- include: "#css-selector" | ||
- include: source.js | ||
- name: support.function.js.jquery | ||
match: \.(addClass|after|append|attr|background|before|bind|blur|change|click|color|css|dblclick|domManip|each|empty|end|error|extend|fadeIn|fadeOut|fadeTo|float|focus|get|height|hide|hover|href|html|id|init|keydown|keypress|keyup|left|length|load|mousedown|mousemove|mouseout|mouseover|mouseup|name|oneblur|onechange|oneclick|onedblclick|oneerror|onefocus|onekeydown|onekeypress|onekeyup|oneload|onemousedown|onemousemove|onemouseout|onemouseover|onemouseup|onereset|oneresize|onescroll|oneselect|onesubmit|oneunload|overflow|position|prepend|pushStack|ready|rel|removeClass|reset|resize|scroll|select|show|size|slideDown|slideUp|src|submit|text|title|toggle|toggleClass|top|trigger|unbind|unblur|unchange|unclick|undblclick|unerror|unfocus|unkeydown|unkeypress|unkeyup|unload|unmousedown|unmousemove|unmouseout|unmouseover|unmouseup|unreset|unresize|unscroll|unselect|unsubmit|ununload|val|width|wrap)\b | ||
- include: source.js | ||
foldingStopMarker: (^\s*\}|^\s*\)|^(?!.*/\*).*\*/) | ||
keyEquivalent: ^~J | ||
comment: jQuery Javascript Framework. By Jonathan Chaffer & Karl Swedberg. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,154 @@ | ||
--- | ||
name: jQuery (JavaScript) | ||
scopeName: source.js.jquery | ||
repository: | ||
nested-parens: | ||
captures: | ||
"0": | ||
name: punctuation.section.scope.js | ||
begin: \( | ||
end: \) | ||
patterns: | ||
- include: "#nested-parens" | ||
- include: source.js | ||
css-selector: | ||
name: meta.selector.css | ||
begin: (?=\s*[.*#a-zA-Z]) | ||
end: (?=["']) | ||
patterns: | ||
- name: entity.name.tag.css | ||
match: \b(a|abbr|acronym|address|area|b|base|big|blockquote|body|br|button|caption|cite|code|col|colgroup|dd|del|dfn|div|dl|dt|em|fieldset|form|frame|frameset|(h[1-6])|head|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|ul|var)\b | ||
- name: entity.other.attribute-name.class.css | ||
captures: | ||
"1": | ||
name: punctuation.definition.attribute-name.css | ||
match: (\.)[a-zA-Z0-9_-]+ | ||
- name: entity.other.attribute-name.id.css | ||
captures: | ||
"1": | ||
name: punctuation.definition.attribute-name.css | ||
match: (#)[a-zA-Z0-9_-]+ | ||
- name: entity.name.tag.wildcard.css | ||
match: \* | ||
- name: entity.other.attribute-name.pseudo-class.css | ||
captures: | ||
"1": | ||
name: punctuation.definition.attribute-name.css | ||
match: (:)\b(active|after|before|first-letter|first-line|hover|link|visited)\b | ||
uuid: 1AD8EB10-62BE-417C-BC4B-29B5C6F0B36A | ||
--- | ||
comment: jQuery Javascript Framework. By Jonathan Chaffer & Karl Swedberg. | ||
foldingStartMarker: (^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$) | ||
patterns: | ||
- endCaptures: | ||
"1": | ||
name: punctuation.section.class.js | ||
begin: (\$)(\() | ||
contentName: meta.selector.jquery | ||
beginCaptures: | ||
"1": | ||
foldingStopMarker: (^\s*\}|^\s*\)|^(?!.*/\*).*\*/) | ||
keyEquivalent: ^~J | ||
name: jQuery (JavaScript) | ||
patterns: | ||
- begin: (\$)(\() | ||
beginCaptures: | ||
'1': | ||
name: support.class.js.jquery | ||
"2": | ||
'2': | ||
name: punctuation.section.class.js | ||
contentName: meta.selector.jquery | ||
end: (\)) | ||
patterns: | ||
- include: "#nested-parens" | ||
- endCaptures: | ||
"0": | ||
endCaptures: | ||
'1': | ||
name: punctuation.section.class.js | ||
patterns: | ||
- include: ! '#nested-parens' | ||
- begin: ! '''(?!<)' | ||
beginCaptures: | ||
'0': | ||
name: punctuation.definition.selector.begin.js | ||
end: ! '''' | ||
endCaptures: | ||
'0': | ||
name: punctuation.definition.selector.end.js | ||
patterns: | ||
- include: ! '#css-selector' | ||
- begin: ! '"(?!<)' | ||
beginCaptures: | ||
'0': | ||
name: punctuation.definition.selector.begin.js | ||
end: ! '"' | ||
endCaptures: | ||
'0': | ||
name: punctuation.definition.selector.end.js | ||
begin: "'" | ||
beginCaptures: | ||
"0": | ||
patterns: | ||
- include: ! '#css-selector' | ||
- begin: ! '''(?=<)' | ||
beginCaptures: | ||
'0': | ||
name: punctuation.definition.selector.begin.js | ||
end: "'" | ||
patterns: | ||
- include: "#css-selector" | ||
- endCaptures: | ||
"0": | ||
end: ! '''' | ||
endCaptures: | ||
'0': | ||
name: punctuation.definition.selector.end.js | ||
begin: "\"" | ||
beginCaptures: | ||
"0": | ||
patterns: | ||
- include: text.html.basic | ||
- begin: ! '"(?=<)' | ||
beginCaptures: | ||
'0': | ||
name: punctuation.definition.selector.begin.js | ||
end: "\"" | ||
patterns: | ||
- include: "#css-selector" | ||
end: ! '"' | ||
endCaptures: | ||
'0': | ||
name: punctuation.definition.selector.end.js | ||
patterns: | ||
- include: text.html.basic | ||
- include: source.js | ||
- endCaptures: | ||
"1": | ||
name: punctuation.section.function.js | ||
begin: \b(add|ancestors|appendTo|children|filter|find|insertAfter|insertBefore|next|not|parent|parents|prependTo|prev|remove|siblings)\s*(\() | ||
contentName: meta.selector.jquery | ||
beginCaptures: | ||
"1": | ||
- begin: \b(filter|is|not|add|children|find|next|nextAll|parent|parents|prev|prevAll|siblings|appendTo|prependTo|insertAfter|insertBefore|replaceAll|remove)\s*(\() | ||
beginCaptures: | ||
'1': | ||
name: support.function.js.jquery | ||
"2": | ||
'2': | ||
name: punctuation.section.function.js | ||
contentName: meta.selector.jquery | ||
end: (\)) | ||
patterns: | ||
- include: "#nested-parens" | ||
- endCaptures: | ||
"0": | ||
endCaptures: | ||
'1': | ||
name: punctuation.section.function.js | ||
patterns: | ||
- include: ! '#nested-parens' | ||
- begin: ! '''(?!<)' | ||
beginCaptures: | ||
'0': | ||
name: punctuation.definition.selector.begin.js | ||
end: ! '''' | ||
endCaptures: | ||
'0': | ||
name: punctuation.definition.selector.end.js | ||
patterns: | ||
- include: ! '#css-selector' | ||
- begin: ! '"(?!<)' | ||
beginCaptures: | ||
'0': | ||
name: punctuation.definition.selector.begin.js | ||
end: ! '"' | ||
endCaptures: | ||
'0': | ||
name: punctuation.definition.selector.end.js | ||
begin: "'" | ||
beginCaptures: | ||
"0": | ||
patterns: | ||
- include: ! '#css-selector' | ||
- begin: ! '''(?=<)' | ||
beginCaptures: | ||
'0': | ||
name: punctuation.definition.selector.begin.js | ||
end: "'" | ||
patterns: | ||
- include: "#css-selector" | ||
- endCaptures: | ||
"0": | ||
end: ! '''' | ||
endCaptures: | ||
'0': | ||
name: punctuation.definition.selector.end.js | ||
begin: "\"" | ||
beginCaptures: | ||
"0": | ||
patterns: | ||
- include: text.html.basic | ||
- begin: ! '"(?=<)' | ||
beginCaptures: | ||
'0': | ||
name: punctuation.definition.selector.begin.js | ||
end: "\"" | ||
patterns: | ||
- include: "#css-selector" | ||
end: ! '"' | ||
endCaptures: | ||
'0': | ||
name: punctuation.definition.selector.end.js | ||
patterns: | ||
- include: text.html.basic | ||
- include: source.js | ||
- name: support.function.js.jquery | ||
match: \.(addClass|after|append|attr|background|before|bind|blur|change|click|color|css|dblclick|domManip|each|empty|end|error|extend|fadeIn|fadeOut|fadeTo|float|focus|get|height|hide|hover|href|html|id|init|keydown|keypress|keyup|left|length|load|mousedown|mousemove|mouseout|mouseover|mouseup|name|oneblur|onechange|oneclick|onedblclick|oneerror|onefocus|onekeydown|onekeypress|onekeyup|oneload|onemousedown|onemousemove|onemouseout|onemouseover|onemouseup|onereset|oneresize|onescroll|oneselect|onesubmit|oneunload|overflow|position|prepend|pushStack|ready|rel|removeClass|reset|resize|scroll|select|show|size|slideDown|slideUp|src|submit|text|title|toggle|toggleClass|top|trigger|unbind|unblur|unchange|unclick|undblclick|unerror|unfocus|unkeydown|unkeypress|unkeyup|unload|unmousedown|unmousemove|unmouseout|unmouseover|unmouseup|unreset|unresize|unscroll|unselect|unsubmit|ununload|val|width|wrap)\b | ||
- match: \.(each|size|length|get|index|extend|noConflict|attr|removeAttr|addClass|removeClass|toggleClass|html|text|val|eq|hasClass|map|slice|contents|andSelf|end|append|prepend|after|before|wrap|wrapAll|wrapInner|replaceWith|empty|clone|css|offset|height|width|ready|bind|one|trigger|triggerHandler|unbind|hover|toggle|blur|change|click|dblclick|error|focus|keydown|keypress|keyup|load|mousedown|mousemove|mouseout|mouseover|mouseup|resize|scroll|select|submit|unload|show|hide|toggle|slideDown|slideUp|slideToggle|fadeIn|fadeOut|fadeTo|animate|stop|queue|dequeue|load|ajaxComplete|ajaxError|ajaxSend|ajaxStart|ajaxStop|ajaxSuccess|serialize|serializeArray|ajax|get|getJSON|getScript|post|ajaxSetup|css|offset|height|width)\b | ||
name: support.function.js.jquery | ||
- include: source.js | ||
foldingStopMarker: (^\s*\}|^\s*\)|^(?!.*/\*).*\*/) | ||
keyEquivalent: ^~J | ||
comment: jQuery Javascript Framework. By Jonathan Chaffer & Karl Swedberg. | ||
repository: | ||
css-selector: | ||
begin: (?=\s*[.*#a-zA-Z]) | ||
end: (?=["']) | ||
name: meta.selector.css | ||
patterns: | ||
- match: \b(a|abbr|acronym|address|area|b|base|big|blockquote|body|br|button|caption|cite|code|col|colgroup|dd|del|dfn|div|dl|dt|em|fieldset|form|frame|frameset|(h[1-6])|head|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|ul|var)\b | ||
name: entity.name.tag.css | ||
- captures: | ||
'1': | ||
name: punctuation.definition.attribute-name.css | ||
match: (\.)[a-zA-Z0-9_-]+ | ||
name: entity.other.attribute-name.class.css | ||
- captures: | ||
'1': | ||
name: punctuation.definition.attribute-name.css | ||
match: (#)[a-zA-Z0-9_-]+ | ||
name: entity.other.attribute-name.id.css | ||
- match: \* | ||
name: entity.name.tag.wildcard.css | ||
- captures: | ||
'1': | ||
name: punctuation.definition.attribute-name.css | ||
match: (:)\b(active|after|before|first-letter|first-line|hover|link|visited)\b | ||
name: entity.other.attribute-name.pseudo-class.css | ||
nested-parens: | ||
begin: \( | ||
captures: | ||
'0': | ||
name: punctuation.section.scope.js | ||
end: \) | ||
patterns: | ||
- include: ! '#nested-parens' | ||
- include: source.js | ||
scopeName: source.js.jquery | ||
uuid: 1AD8EB10-62BE-417C-BC4B-29B5C6F0B36A |