Skip to content

Commit

Permalink
add nullish coalescing support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingwl committed Aug 22, 2019
1 parent 3890a41 commit f646a52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions TypeScript.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ repository:

#ternary expression
ternary-expression:
begin: (?!\?\.\s*[^[:digit:]])(\?)
begin: (?!\?\.\s*[^[:digit:]])(\?)(?!\?)
beginCaptures:
'1': { name: keyword.operator.ternary.ts }
end: \s*(:)
Expand Down Expand Up @@ -1641,7 +1641,7 @@ repository:
- name: keyword.operator.relational.ts
match: <=|>=|<>|<|>
- name: keyword.operator.logical.ts
match: \!|&&|\|\|
match: \!|&&|\|\||\?\?
- name: keyword.operator.bitwise.ts
match: \&|~|\^|\|
- name: keyword.operator.assignment.ts
Expand Down
4 changes: 2 additions & 2 deletions TypeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -4606,7 +4606,7 @@
<key>ternary-expression</key>
<dict>
<key>begin</key>
<string>(?!\?\.\s*[^[:digit:]])(\?)</string>
<string>(?!\?\.\s*[^[:digit:]])(\?)(?!\?)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -5343,7 +5343,7 @@
<key>name</key>
<string>keyword.operator.logical.ts</string>
<key>match</key>
<string>\!|&amp;&amp;|\|\|</string>
<string>\!|&amp;&amp;|\|\||\?\?</string>
</dict>
<dict>
<key>name</key>
Expand Down
4 changes: 2 additions & 2 deletions TypeScriptReact.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -4630,7 +4630,7 @@
<key>ternary-expression</key>
<dict>
<key>begin</key>
<string>(?!\?\.\s*[^[:digit:]])(\?)</string>
<string>(?!\?\.\s*[^[:digit:]])(\?)(?!\?)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -5289,7 +5289,7 @@
<key>name</key>
<string>keyword.operator.logical.tsx</string>
<key>match</key>
<string>\!|&amp;&amp;|\|\|</string>
<string>\!|&amp;&amp;|\|\||\?\?</string>
</dict>
<dict>
<key>name</key>
Expand Down

0 comments on commit f646a52

Please sign in to comment.