Skip to content

Commit

Permalink
[FJSX15] Add numeric separators
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Oct 21, 2017
1 parent 44b687f commit 746fe1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 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_]+
literalFloat: |
(?> [0-9]*[.]{{literalDecimal}}
Expand Down Expand Up @@ -51,19 +51,19 @@ contexts:
pop: true

integer:
- match: \s*(0[bB][01]+)
- match: \s*(0[bB][01_]+)
captures:
1: constant.numeric.binary.js.fjsx15
pop: true
- match: \s*(0[oO][0-7]+)
captures:
1: constant.numeric.octal.js.fjsx15
pop: true
- match: (?i)\s*(0[x][0-9a-f]+)
- match: (?i)\s*(0[xX][0-9a-f_]+)
captures:
1: constant.numeric.hex.js.fjsx15
pop: true
- match: \s*([1-9][0-9]*|0)
- match: \s*([1-9][0-9_]*|0)
captures:
1: constant.numeric.decimal.js.fjsx15
pop: true

0 comments on commit 746fe1a

Please sign in to comment.