We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c999d97 commit f79cfdfCopy full SHA for f79cfdf
example.nr
@@ -20,6 +20,11 @@ _CustomUnusedType, _custumUnusedVariable
20
function(), Class(), _function()
21
//structure<Hello, World <andEveryoneElse>> // THIS BREAKS: x < y
22
23
+#[builtin(hello)]
24
+fn WithComment() {
25
+
26
+}
27
28
// Import
29
30
use x::y::z::{
src/syntax.json
@@ -18,6 +18,9 @@
18
{
19
"include": "#syntax"
},
+ {
+ "include": "#attribute"
+ },
"include": "#keywords"
@@ -188,6 +191,16 @@
188
191
}
189
192
]
190
193
194
+ "attribute": {
195
+ "begin": "#\\[",
196
+ "end": "\\]",
197
+ "patterns": [{
198
+ "begin": "[a-zA-Z_][a-zA-Z0-9_]\\s*\\(",
199
+ "end": "\\)"
200
+ }, {
201
+ "match": "[a-zA-Z_][a-zA-Z0-9_]"
202
+ }]
203
204
"keywords": {
205
"patterns": [{
206
"name": "keyword.control.nr",
0 commit comments