Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions JavaScript (Babel).YAML-tmLanguage
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [PackageDev] target_format: plist, ext: tmLanguage
name: JavaScript (Babel)
scopeName: source.js
scopeName: source.js.jsx
fileTypes: [js, jsx, babel, es6]
firstLineMatch: ^#!\s*/.*\b(node|js)$\n?

Expand Down Expand Up @@ -706,18 +706,18 @@ repository:
- name: meta.function-call.without-arguments.js
match: ([_$a-zA-Z][$\w]*)\s*(\(\s*\))
captures:
'1': {name: variable.function.js}
'1': {name: entity.name.function.js}
'2': {name: meta.group.braces.round.function.arguments.js}

- name: meta.function-call.with-arguments.js
match: ([_$a-zA-Z][$\w]*)\s*(?=\()
captures:
'1': {name: variable.function.js}
'1': {name: entity.name.function.js}

- name: meta.function-call.tagged-template.js
match: ([_$a-zA-Z][$\w]*)\s*(?=`)
captures:
'1': {name: variable.function.js}
'1': {name: entity.name.function.js}

literal-method-call:
patterns:
Expand All @@ -731,7 +731,7 @@ repository:
captures:
'1': {name: variable.other.class.js}
'2': {name: keyword.operator.accessor.js}
'3': {name: variable.function.js}
'3': {name: entity.name.function.js}
'4': {name: meta.group.braces.round.function.arguments.js}

- name: meta.function-call.static.with-arguments.js
Expand All @@ -744,7 +744,7 @@ repository:
captures:
'1': {name: variable.other.class.js}
'2': {name: keyword.operator.accessor.js}
'3': {name: variable.function.js}
'3': {name: entity.name.function.js}

- name: meta.function-call.method.without-arguments.js
match: >-
Expand All @@ -753,7 +753,7 @@ repository:
([_$a-zA-Z][$\w]*)\s*
(\(\s*\))
captures:
'1': {name: variable.function.js}
'1': {name: entity.name.function.js}
'2': {name: meta.group.braces.round.function.arguments.js}

- name: meta.function-call.method.with-arguments.js
Expand All @@ -763,7 +763,7 @@ repository:
([_$a-zA-Z][$\w]*)\s*
(?=\()
captures:
'1': {name: variable.function.js}
'1': {name: entity.name.function.js}

literal-language-variable:
patterns:
Expand Down Expand Up @@ -1049,7 +1049,7 @@ repository:
'1': {name: punctuation.definition.string.end.js}
'2': {name: keyword.other.js}
patterns:
- include: source.regexp.js
- include: source.js.regexp

literal-string:
patterns:
Expand All @@ -1067,10 +1067,10 @@ repository:
literal-template-string:
begin: '`'
beginCaptures:
'0': {name: string.interpolated.js keyword.other.template.begin.js}
'0': {name: keyword.other.template.begin.js}
end: '`'
captures:
'0': {name: string.interpolated.js keyword.other.template.end.js}
'0': {name: keyword.other.template.end.js}
patterns:
- include: '#string-content'
- name: constant.character.escape.js
Expand Down Expand Up @@ -1129,7 +1129,7 @@ repository:
- name: meta.styled-components.js
begin: (?<!\.)\b(styled)\s*(?=(\((?>(?>[^()]+)|\g<-1>)*\))\s*`)
captures:
'1': {name: meta.function-call.with-arguments.js variable.function.js}
'1': {name: meta.function-call.with-arguments.js entity.name.function.js}
end: (?<=`)
patterns:
# Like #round-brackets, but with "meta.function-call.with-arguments.js" so
Expand Down Expand Up @@ -1267,14 +1267,14 @@ repository:
patterns:
- begin: (<)([_$a-zA-Z][-$:.\w]*[$\w]*)
beginCaptures:
'1': {name: meta.tag.jsx punctuation.definition.tag.begin.jsx}
'2': {name: meta.tag.jsx entity.name.tag.jsx}
'1': {name: punctuation.definition.tag.begin.jsx}
'2': {name: entity.name.tag.html.jsx}
end: (</)(\2)(>)|(/>)
endCaptures:
'1': {name: meta.tag.jsx punctuation.definition.tag.begin.jsx}
'2': {name: meta.tag.jsx entity.name.tag.jsx}
'3': {name: meta.tag.jsx punctuation.definition.tag.end.jsx}
'4': {name: meta.tag.jsx punctuation.definition.tag.end.jsx}
'1': {name: punctuation.definition.tag.begin.jsx}
'2': {name: entity.name.tag.jsx}
'3': {name: punctuation.definition.tag.end.jsx}
'4': {name: punctuation.definition.tag.end.jsx}
patterns:
- include: '#jsx-tag-end'
- include: '#jsx-attributes'
Expand All @@ -1285,7 +1285,7 @@ repository:
jsx-tag-end:
begin: '>'
beginCaptures:
'0': {name: meta.tag.jsx punctuation.definition.tag.end.jsx}
'0': {name: punctuation.definition.tag.end.jsx}
end: (?=</)
patterns:
- include: '#jsx-tag-start'
Expand Down
38 changes: 19 additions & 19 deletions JavaScript (Babel).tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@
<key>0</key>
<dict>
<key>name</key>
<string>meta.tag.jsx punctuation.definition.tag.end.jsx</string>
<string>punctuation.definition.tag.end.jsx</string>
</dict>
</dict>
<key>end</key>
Expand Down Expand Up @@ -1348,12 +1348,12 @@
<key>1</key>
<dict>
<key>name</key>
<string>meta.tag.jsx punctuation.definition.tag.begin.jsx</string>
<string>punctuation.definition.tag.begin.jsx</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.tag.jsx entity.name.tag.jsx</string>
<string>entity.name.tag.html.jsx</string>
</dict>
</dict>
<key>end</key>
Expand All @@ -1363,22 +1363,22 @@
<key>1</key>
<dict>
<key>name</key>
<string>meta.tag.jsx punctuation.definition.tag.begin.jsx</string>
<string>punctuation.definition.tag.begin.jsx</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.tag.jsx entity.name.tag.jsx</string>
<string>entity.name.tag.html.jsx</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>meta.tag.jsx punctuation.definition.tag.end.jsx</string>
<string>punctuation.definition.tag.end.jsx</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>meta.tag.jsx punctuation.definition.tag.end.jsx</string>
<string>punctuation.definition.tag.end.jsx</string>
</dict>
</dict>
<key>patterns</key>
Expand Down Expand Up @@ -2372,7 +2372,7 @@
<key>1</key>
<dict>
<key>name</key>
<string>variable.function.js</string>
<string>entity.name.function.js</string>
</dict>
<key>2</key>
<dict>
Expand All @@ -2391,7 +2391,7 @@
<key>1</key>
<dict>
<key>name</key>
<string>variable.function.js</string>
<string>entity.name.function.js</string>
</dict>
</dict>
<key>match</key>
Expand All @@ -2405,7 +2405,7 @@
<key>1</key>
<dict>
<key>name</key>
<string>variable.function.js</string>
<string>entity.name.function.js</string>
</dict>
</dict>
<key>match</key>
Expand Down Expand Up @@ -2907,7 +2907,7 @@
<key>3</key>
<dict>
<key>name</key>
<string>variable.function.js</string>
<string>entity.name.function.js</string>
</dict>
<key>4</key>
<dict>
Expand Down Expand Up @@ -2940,7 +2940,7 @@
<key>3</key>
<dict>
<key>name</key>
<string>variable.function.js</string>
<string>entity.name.function.js</string>
</dict>
</dict>
<key>match</key>
Expand All @@ -2958,7 +2958,7 @@
<key>1</key>
<dict>
<key>name</key>
<string>variable.function.js</string>
<string>entity.name.function.js</string>
</dict>
<key>2</key>
<dict>
Expand All @@ -2980,7 +2980,7 @@
<key>1</key>
<dict>
<key>name</key>
<string>variable.function.js</string>
<string>entity.name.function.js</string>
</dict>
</dict>
<key>match</key>
Expand Down Expand Up @@ -3274,7 +3274,7 @@
<array>
<dict>
<key>include</key>
<string>source.regexp.js</string>
<string>source.js.regexp</string>
</dict>
</array>
</dict>
Expand Down Expand Up @@ -3414,15 +3414,15 @@
<key>0</key>
<dict>
<key>name</key>
<string>string.interpolated.js keyword.other.template.begin.js</string>
<string>keyword.other.template.begin.js</string>
</dict>
</dict>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>string.interpolated.js keyword.other.template.end.js</string>
<string>keyword.other.template.end.js</string>
</dict>
</dict>
<key>end</key>
Expand Down Expand Up @@ -3788,7 +3788,7 @@
<key>1</key>
<dict>
<key>name</key>
<string>meta.function-call.with-arguments.js variable.function.js</string>
<string>meta.function-call.with-arguments.js entity.name.function.js</string>
</dict>
</dict>
<key>end</key>
Expand Down Expand Up @@ -3998,6 +3998,6 @@
</dict>
</dict>
<key>scopeName</key>
<string>source.js</string>
<string>source.js.jsx</string>
</dict>
</plist>