Skip to content

Commit

Permalink
[FJSX15] Escape from sub properties on core globals
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Jan 16, 2018
1 parent 97e721f commit 25f4ba6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions syntaxes/fjsx15/core.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ contexts:
- include: internationalization
- include: web-assembly

escape:
else-pop:
- match: (?=\s*\S)
pop: true

Expand Down Expand Up @@ -157,8 +157,7 @@ contexts:
captures:
1: support.function.console.warn.js.fjsx15
pop: true
# Anything else.
- include: escape
- include: else-pop

console-error-meta-scope:
- meta_scope: meta.function-call.console.error.js.fjsx15
Expand Down Expand Up @@ -299,6 +298,7 @@ contexts:
captures:
1: support.function.js.fjsx15
pop: true
- include: else-pop

symbol-property-or-function:
# Function call.
Expand All @@ -319,6 +319,8 @@ contexts:
captures:
1: support.function.js.fjsx15
pop: true
- include: else-pop

numbers-and-dates:
- match: \s*(Math)\s*(\.)
captures:
Expand Down Expand Up @@ -366,6 +368,7 @@ contexts:
captures:
1: support.constant.js.fjsx15
pop: true
- include: else-pop

text-processing:
- match: |
Expand Down Expand Up @@ -408,6 +411,7 @@ contexts:
function-call-meta-scope,
arguments
]
- include: else-pop

keyed-collections:
- match: |
Expand Down

0 comments on commit 25f4ba6

Please sign in to comment.