File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
branches/incoming/src/etc/kate Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/incoming: c771a93c50bfa73acf285eee05407d0618c85175
9
+ refs/heads/incoming: 4548eb1a2921ec8302b11bf5f3195c93cf66c2da
10
10
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change 5
5
predefined char classes, so making rustIdent consistent with actual
6
6
Rust identifiers will be a bit difficult -->
7
7
<!ENTITY rustIdent " [a-zA-Z_][a-zA-Z_0-9]*" >
8
+ <!ENTITY rustIntSuf " ([iu](8|16|32|64)?)?" >
8
9
]>
9
10
<language name =" Rust" version =" 0.6" kateversion =" 2.4" section =" Sources" extensions =" *.rs;*.rc" mimetype =" text/x-rust" priority =" 15" >
10
11
<highlighting >
198
199
<keyword String =" cconstants" attribute =" CConstant" context =" #stay" />
199
200
<Detect2Chars char =" /" char1 =" /" attribute =" Comment" context =" Commentar 1" />
200
201
<Detect2Chars char =" /" char1 =" *" attribute =" Comment" context =" Commentar 2" beginRegion =" Comment" />
201
- <RegExpr String =" 0x[0-9a-fA-F_]+(u8|u16|u32|u64|i8|i16|i32|i64|u|i)? " attribute =" Number" context =" #stay" />
202
- <RegExpr String =" 0b[0-1_]+(u8|u16|u32|u64|i8|i16|i32|i64|u|i)? " attribute =" Number" context =" #stay" />
202
+ <RegExpr String =" 0x[0-9a-fA-F_]+&rustIntSuf; " attribute =" Number" context =" #stay" />
203
+ <RegExpr String =" 0b[0-1_]+&rustIntSuf; " attribute =" Number" context =" #stay" />
203
204
<RegExpr String =" [0-9][0-9_]*\.[0-9_]*([eE][+-]?[0-9_]+)?(f32|f64|f)?" attribute =" Number" context =" #stay" />
204
- <RegExpr String =" [0-9][0-9_]*(u8|u16|u32|u64|i8|i16|i32|i64|u|i)? " attribute =" Number" context =" #stay" />
205
+ <RegExpr String =" [0-9][0-9_]*&rustIntSuf; " attribute =" Number" context =" #stay" />
205
206
<RegExpr String =" &rustIdent; ::" attribute =" Scope" />
206
207
<RegExpr String =" &rustIdent; !" attribute =" Macro" />
207
208
<RegExpr String =" '&rustIdent; (?!' )" attribute =" Lifetime" />
You can’t perform that action at this time.
0 commit comments