We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4281232 + dc0a603 commit 50d01f7Copy full SHA for 50d01f7
RustEnhanced.sublime-syntax
@@ -480,7 +480,7 @@ contexts:
480
- include: return-type
481
- match: '&'
482
scope: keyword.operator.rust
483
- - match: \b(mut|ref|const)\b
+ - match: \b(mut|ref|const|unsafe)\b
484
scope: storage.modifier.rust
485
- match: \b(fn)\b(\()
486
captures:
tests/syntax-rust/syntax_test_misc.rs
@@ -9,6 +9,9 @@ unsafe impl<T> Send for Interned<T> {}
9
//^^^^ storage.modifier
10
pub unsafe trait Alloc { }
11
// ^^^^^^ storage.modifier
12
+fn f(a: unsafe fn() -> String) {}
13
+// ^^^^^^ meta.function meta.function.parameters storage.modifier
14
+// ^^ meta.function meta.function.parameters storage.type.function
15
16
// Previously reserved keywords now unreserved.
17
let pure = 1;
0 commit comments