More precise highlighting rules for constant modifier

This commit is contained in:
Lukas Wirth 2024-03-17 11:26:05 +01:00
parent 640c8b722e
commit 77607ab99a
22 changed files with 87 additions and 6 deletions

View file

@ -414,7 +414,7 @@ StmtList =
'}'
RefExpr =
Attr* '&' ('raw' | 'mut' | 'const') Expr
Attr* '&' (('raw' 'const'?)| ('raw'? 'mut') ) Expr
TryExpr =
Attr* Expr '?'