Skip to content

Commit

Permalink
Move variables to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe authored and princemaple committed Dec 16, 2024
1 parent f8abc9a commit 7d992c1
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions NgxHTML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,6 @@ file_extensions:
- ngx
- component.html

variables:

bin_digit: '[01_]'
oct_digit: '[0-7_]'
dec_digit: '[0-9_]'
hex_digit: '[\h_]'
dec_integer: (?:0|[1-9]{{dec_digit}}*)
dec_exponent: '[Ee](?:[-+]|(?![-+])){{dec_digit}}*'

# JavaScript identifier
ident_name: (?:{{ident_start}}{{ident_part}}*{{ident_break}})
ident_break: (?!{{ident_part}})
ident_escape: (?:\\u(?:\h{4}|\{\h+\}))
ident_start: (?:[_$\p{L}\p{Nl}]|{{ident_escape}})
ident_part: (?:[_$\p{L}\p{Nl}\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]|{{ident_escape}})

dot_accessor: (?:\??\.(?!\.))

contexts:

###[ HTML CUSTOMIZATIONS ]#####################################################
Expand Down Expand Up @@ -686,3 +668,23 @@ contexts:
ng-block-pop:
- match: (?=[;)}])
pop: 1

###############################################################################

variables:

bin_digit: '[01_]'
oct_digit: '[0-7_]'
dec_digit: '[0-9_]'
hex_digit: '[\h_]'
dec_integer: (?:0|[1-9]{{dec_digit}}*)
dec_exponent: '[Ee](?:[-+]|(?![-+])){{dec_digit}}*'

# JavaScript identifier
ident_name: (?:{{ident_start}}{{ident_part}}*{{ident_break}})
ident_break: (?!{{ident_part}})
ident_escape: (?:\\u(?:\h{4}|\{\h+\}))
ident_start: (?:[_$\p{L}\p{Nl}]|{{ident_escape}})
ident_part: (?:[_$\p{L}\p{Nl}\p{Mn}\p{Mc}\p{Nd}\p{Pc}\x{200C}\x{200D}]|{{ident_escape}})

dot_accessor: (?:\??\.(?!\.))

0 comments on commit 7d992c1

Please sign in to comment.