Skip to content

Commit

Permalink
Syntax: Better error recovery in generics. (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss authored Sep 25, 2019
2 parents 62b1e49 + e2c35b0 commit 5acd608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RustEnhanced.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ contexts:
scope: punctuation.definition.generic.begin.rust
push: generic-angles-contents
# Alert the user of a broken generic construct
- match: '.'
- match: '(?=\S)'
scope: invalid.illegal.rust
pop: true

Expand All @@ -478,7 +478,7 @@ contexts:
scope: punctuation.separator.rust
- match: '\+|\bas\b|='
scope: keyword.operator.rust
- match: '\S'
- match: '(?=\S)'
scope: invalid.illegal.rust
pop: true

Expand Down

0 comments on commit 5acd608

Please sign in to comment.