From e2c35b0c0d65a14e92e141e6cb99f95862ad6f1d Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 25 Sep 2019 09:29:43 -0700 Subject: [PATCH] Syntax: Better error recovery in generics. --- RustEnhanced.sublime-syntax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RustEnhanced.sublime-syntax b/RustEnhanced.sublime-syntax index 0bbb348f..201aba6b 100644 --- a/RustEnhanced.sublime-syntax +++ b/RustEnhanced.sublime-syntax @@ -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 @@ -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