File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 7ad20826636c102db338ecaf9f71f2aa8af5f631
2
+ refs/heads/master: 11d10fdb092a02d4cad482ddd720a0330f31d299
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5
5
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3
Original file line number Diff line number Diff line change 1
1
<?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
+ ]>
3
6
<language name =" Rust" version =" 0.4.0" kateversion =" 2.4" section =" Sources" extensions =" *.rs;*.rc" mimetype =" text/x-rust" priority =" 15" >
4
7
<highlighting >
5
8
<list name =" fn" >
171
174
<RegExpr String =" 0b[0-1_]+(u8|u16|u32|u64|i8|i16|i32|i64|u|i)?" attribute =" Number" context =" #stay" />
172
175
<RegExpr String =" [0-9][0-9_]*\.[0-9_]*([eE][+-]?[0-9_]+)?(f32|f64|f)?" attribute =" Number" context =" #stay" />
173
176
<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" />
176
179
<DetectChar char =" {" attribute =" Symbol" context =" #stay" beginRegion =" Brace" />
177
180
<DetectChar char =" }" attribute =" Symbol" context =" #stay" endRegion =" Brace" />
178
181
<DetectChar char =" " " attribute =" String" context =" String" />
You can’t perform that action at this time.
0 commit comments