Skip to content

Commit 0deb16a

Browse files
committed
auto merge of #13347 : HeroesGrave/rust/master, r=alexcrichton
This has to be the most pathetic pull request I've ever made, but the `[` in `#![some_attribute]` was not getting highlighted in KATE.
2 parents e4779b5 + c6e19ae commit 0deb16a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/kate/rust.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
<RegExpr String="[0-9][0-9_]*\.[0-9_]*([eE][+-]?[0-9_]+)?(f32|f64|f)?" attribute="Number" context="#stay"/>
203203
<RegExpr String="[0-9][0-9_]*&rustIntSuf;" attribute="Number" context="#stay"/>
204204
<Detect2Chars char="#" char1="[" attribute="Attribute" context="Attribute" beginRegion="Attribute"/>
205-
<Detect2Chars char="#" char1="!" char2="[" attribute="Attribute" context="Attribute" beginRegion="Attribute"/>
205+
<StringDetect String="#![" attribute="Attribute" context="Attribute" beginRegion="Attribute"/>
206206
<RegExpr String="&rustIdent;::" attribute="Scope"/>
207207
<RegExpr String="&rustIdent;!" attribute="Macro"/>
208208
<RegExpr String="&apos;&rustIdent;(?!&apos;)" attribute="Lifetime"/>

0 commit comments

Comments
 (0)