Skip to content

Commit abc6f93

Browse files
committed
---
yaml --- r: 46690 b: refs/heads/auto c: 11d10fd h: refs/heads/master v: v3
1 parent 4de7cb6 commit abc6f93

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 7ad20826636c102db338ecaf9f71f2aa8af5f631
17+
refs/heads/auto: 11d10fdb092a02d4cad482ddd720a0330f31d299

branches/auto/src/etc/kate/rust.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE language SYSTEM "language.dtd">
2+
<!DOCTYPE language SYSTEM "language.dtd"
3+
[
4+
<!ENTITY rustIdent "[a-zA-Z_][a-zA-Z_0-9]*">
5+
]>
36
<language name="Rust" version="0.4.0" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
47
<highlighting>
58
<list name="fn">
@@ -171,8 +174,8 @@
171174
<RegExpr String="0b[0-1_]+(u8|u16|u32|u64|i8|i16|i32|i64|u|i)?" attribute="Number" context="#stay"/>
172175
<RegExpr String="[0-9][0-9_]*\.[0-9_]*([eE][+-]?[0-9_]+)?(f32|f64|f)?" attribute="Number" context="#stay"/>
173176
<RegExpr String="[0-9][0-9_]*(u8|u16|u32|u64|i8|i16|i32|i64|u|i)?" attribute="Number" context="#stay"/>
174-
<RegExpr String="[a-zA-Z_][a-zA-Z0-9_]*::" attribute="Scope"/>
175-
<RegExpr String="\w+!" attribute="Macro"/>
177+
<RegExpr String="&rustIdent;::" attribute="Scope"/>
178+
<RegExpr String="&rustIdent;!" attribute="Macro"/>
176179
<DetectChar char="{" attribute="Symbol" context="#stay" beginRegion="Brace" />
177180
<DetectChar char="}" attribute="Symbol" context="#stay" endRegion="Brace" />
178181
<DetectChar char="&quot;" attribute="String" context="String"/>

0 commit comments

Comments
 (0)