Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions RustEnhanced.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ contexts:
- match: '{{identifier}}'
scope: entity.name.enum.rust
set: enum-maybe-where
- match: '(?=\S)'
# Abort on invalid character.
pop: true

enum-maybe-where:
- meta_scope: meta.enum.rust
Expand All @@ -693,6 +696,9 @@ contexts:
- match: '\{'
scope: punctuation.definition.block.begin.rust
set: enum-body
- match: '(?=\S)'
# Abort on invalid character.
pop: true

enum-body:
- meta_scope: meta.enum.rust
Expand Down