We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f995e8 commit dc0a603Copy full SHA for dc0a603
RustEnhanced.sublime-syntax
@@ -472,7 +472,7 @@ contexts:
472
- include: return-type
473
- match: '&'
474
scope: keyword.operator.rust
475
- - match: \b(mut|ref|const)\b
+ - match: \b(mut|ref|const|unsafe)\b
476
scope: storage.modifier.rust
477
- match: \b(fn)\b(\()
478
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