Skip to content

Commit

Permalink
[FJSX15] Fix JSX greediness
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Jan 15, 2018
1 parent b8d1a25 commit 97e721f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion syntaxes/fjsx15/jsx1-early.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ hidden: true

scope: ...

variables:
commonIdentifier: |
[$_[:alpha:]]
[$_.:[:alnum:]]*
contexts:
main:
- match: (?=\s*<)
- match: |
(?xi)
(?=\s*<(?>\s*>|{{commonIdentifier}}))
with_prototype:
- include: comment-and-embedded-js
set: [ Packages/Naomi/syntaxes/naomi.jsx1.sublime-syntax ]
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/fjsx15/jsx1.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ contexts:
main:
- match: |
(?xi)
(?=\s*<(?>>|{{commonIdentifier}}))
(?=\s*<(?>\s*>|{{commonIdentifier}}))
with_prototype:
- include: comment-and-embedded-js
set: [ Packages/Naomi/syntaxes/naomi.jsx1.sublime-syntax ]
Expand Down

0 comments on commit 97e721f

Please sign in to comment.