diff --git a/CHANGELOG.md b/CHANGELOG.md index e3546ca5..0102437f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - Performance problems with C# source code have been fixed, see #677 (@keith-hall) - Performance problems with Makefiles have been fixed, see #750 (@keith-hall) - Fig bux when highlighting Ruby files with unindented heredocs, see #914 (@keith-hall) +- A highlighting problem with Rust source code has been fixed, see #924 (@keith-hall) ## Other diff --git a/assets/patches/Rust.sublime-syntax.patch b/assets/patches/Rust.sublime-syntax.patch new file mode 100644 index 00000000..3bd745e2 --- /dev/null +++ b/assets/patches/Rust.sublime-syntax.patch @@ -0,0 +1,13 @@ +diff --git syntaxes/01_Packages/Rust/Rust.sublime-syntax syntaxes/01_Packages/Rust/Rust.sublime-syntax +index 3c354486..24727a4e 100644 +--- syntaxes/01_Packages/Rust/Rust.sublime-syntax ++++ syntaxes/01_Packages/Rust/Rust.sublime-syntax +@@ -907,6 +907,8 @@ contexts: + - include: type-any-identifier + - match: ':' + scope: punctuation.separator.rust ++ - match: (?=;) ++ pop: true + + fn-body: + - meta_scope: meta.function.rust diff --git a/assets/syntaxes.bin b/assets/syntaxes.bin index bd3cccfc..2931fdda 100644 Binary files a/assets/syntaxes.bin and b/assets/syntaxes.bin differ