Skip to content

Commit 5274df6

Browse files
authored
feat: support raw references
1 parent 9b201c2 commit 5274df6

File tree

6 files changed

+90437
-89732
lines changed

6 files changed

+90437
-89732
lines changed

grammar.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,10 @@ module.exports = grammar({
10181018

10191019
reference_expression: $ => prec(PREC.unary, seq(
10201020
'&',
1021-
optional($.mutable_specifier),
1021+
choice(
1022+
seq('raw', choice('const', $.mutable_specifier)),
1023+
optional($.mutable_specifier),
1024+
),
10221025
field('value', $._expression),
10231026
)),
10241027

queries/highlights.scm

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
"mod" @keyword
122122
"move" @keyword
123123
"pub" @keyword
124+
"raw" @keyword
124125
"ref" @keyword
125126
"return" @keyword
126127
"static" @keyword

src/grammar.json

+30-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)