Patch Rust syntax file
closes #924
commit47abb192bc7476379986b13834d7c02406ed6a6b
authorsharkdp <davidpeter@web.de>
dateTue 21 Apr 2020, 10:11 (7 years ago)
parent03a7d6b
CHANGELOG.md+1
@@ -14,6 +14,7 @@
1414- Performance problems with C# source code have been fixed, see #677 (@keith-hall)
1515- Performance problems with Makefiles have been fixed, see #750 (@keith-hall)
1616- Fig bux when highlighting Ruby files with unindented heredocs, see #914 (@keith-hall)
17+- A highlighting problem with Rust source code has been fixed, see #924 (@keith-hall)
1718
1819## Other
1920
assets/patches/Rust.sublime-syntax.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git syntaxes/01_Packages/Rust/Rust.sublime-syntax syntaxes/01_Packages/Rust/Rust.sublime-syntax
2+index 3c354486..24727a4e 100644
3+--- syntaxes/01_Packages/Rust/Rust.sublime-syntax
4++++ syntaxes/01_Packages/Rust/Rust.sublime-syntax
5+@@ -907,6 +907,8 @@ contexts:
6+ - include: type-any-identifier
7+ - match: ':'
8+ scope: punctuation.separator.rust
9++ - match: (?=;)
10++ pop: true
11+
12+ fn-body:
13+ - meta_scope: meta.function.rust
assets/syntaxes.bin
Binary file not shown.