Skip to content

Commit

Permalink
Fix regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Oct 25, 2017
1 parent f64aba6 commit 447ba07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
5 changes: 3 additions & 2 deletions syntaxes/fjsx15/class.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ contexts:
keyword.other.inherit.js.fjsx15
push: [
optional-template-arguments,
extended-class
extended-class-or-namespace
]
# Identifier.
- match: |
Expand All @@ -73,7 +73,8 @@ contexts:
- match: ""
pop: true

extended-class:
extended-class-or-namespace:
- include: Packages/Naomi/syntaxes/fjsx15/flowtype/namespace-path.no-pop.sublime-syntax
- match: |
(?xi)
\s*({{commonIdentifier}})
Expand Down
20 changes: 12 additions & 8 deletions syntaxes/fjsx15/function-call.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ contexts:
\s*{{templateArguments}}
\s*\(
)
set: [
arguments,
template-arguments,
name
]
set: name
# Simple function call.
- match: |
(?xi)
Expand All @@ -70,17 +66,25 @@ contexts:
1: >-
support.js.fjsx15
entity.name.function.js.fjsx15
set: support-arguments
set: [
support-arguments,
possible-template-arguments
]
# Identifier.
- match: |
(?xi)
\s*({{commonIdentifier}})
captures:
1: entity.name.function.js.fjsx15
set: arguments
set: [
arguments,
possible-template-arguments
]
template-arguments:
possible-template-arguments:
- include: Packages/Naomi/syntaxes/fjsx15/flowtype/template/arguments.sublime-syntax
- match: ""
pop: true

arguments:
- include: Packages/Naomi/syntaxes/fjsx15/function-call/arguments.sublime-syntax
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/fjsx15/literal/number.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scope: ...

variables:
literalDecimal: |
[0-9_]+
[0-9][0-9_]*
literalFloat: |
(?> [0-9]*[.]{{literalDecimal}}
Expand Down

0 comments on commit 447ba07

Please sign in to comment.