Skip to content

Commit

Permalink
Update to latest from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom1729 committed Jan 22, 2024
1 parent 1d27abd commit 2f45fd5
Show file tree
Hide file tree
Showing 17 changed files with 1,064 additions and 529 deletions.
8 changes: 4 additions & 4 deletions extensions/flow_types.syntax-extension
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ contexts:
- include: flow-type-declare
- include: flow-type-alias

import-item:
import-export-item:
- meta_prepend: true
- include: flow-type-import-type

import-brace:
import-export-brace:
- meta_prepend: true
- include: flow-type-import-type

export-extended:
export-body:
- meta_prepend: true
- include: flow-type-export-type

Expand Down Expand Up @@ -261,7 +261,7 @@ contexts:
flow-type-export-type:
- match: type{{identifier_break}}(?=\s*\{)
scope: keyword.declaration.js
set: export-item
set: import-export-item
- include: flow-type-alias

flow-type-declare:
Expand Down
8 changes: 4 additions & 4 deletions extensions/jsx.syntax-extension
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ contexts:
- include: immediately-pop

jsx-tag-attributes:
- meta_scope: meta.tag.attributes.js
- meta_content_scope: meta.tag.attributes.js

- match: '>'
scope: punctuation.definition.tag.end.js
scope: meta.tag.js punctuation.definition.tag.end.js
set: jsx-body

- match: '/'
scope: punctuation.definition.tag.end.js
scope: meta.tag.js punctuation.definition.tag.end.js
set: jsx-expect-tag-end

- include: jsx-interpolation
Expand Down Expand Up @@ -175,7 +175,7 @@ contexts:

jsx-tag-name-component:
- match: '{{jsx_identifier}}'
scope: entity.name.tag.js
scope: entity.name.tag.component.js
pop: 1
- include: else-pop

Expand Down
9 changes: 9 additions & 0 deletions extensions/string_object_keys.syntax-extension
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
contexts:
object-property-name:
- meta_prepend: true

- match: (?:get|set|async){{identifier_break}}
scope: string.unquoted.js
pop: 2
set:
- match: (?=\*|{{class_element_name}})
fail: object-literal-property
- include: else-pop

- match: '{{identifier_name}}'
scope: string.unquoted.js
pop: true
Expand Down
Loading

0 comments on commit 2f45fd5

Please sign in to comment.