We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d58fe85 + d064ca9 commit 159cffaCopy full SHA for 159cffa
RustEnhanced.sublime-syntax
@@ -324,6 +324,7 @@ contexts:
324
scope: storage.modifier.rust
325
- match: '@'
326
scope: keyword.operator.rust
327
+ - include: lifetime
328
- match: '\b{{identifier}}\b(?!\s*(?:::|\{|\[|\())'
329
scope: variable.parameter.rust
330
tests/syntax-rust/syntax_test_functions.rs
@@ -124,3 +124,9 @@ const extern "C" fn f() {}
124
// ^^^ string.quoted.double
125
// ^^ meta.function storage.type.function
126
// ^ meta.function entity.name.function
127
+
128
+fn foo(&'a self) {}
129
+// ^^^^^^^^ meta.function meta.function.parameters
130
+// ^ keyword.operator
131
+// ^^ storage.modifier.lifetime
132
+// ^^^^ variable.parameter
0 commit comments