Skip to content

Commit d26731a

Browse files
committed
---
yaml --- r: 47417 b: refs/heads/try c: 4548eb1 h: refs/heads/master i: 47415: 3541dff v: v3
1 parent 4d3a4a4 commit d26731a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5-
refs/heads/try: c771a93c50bfa73acf285eee05407d0618c85175
5+
refs/heads/try: 4548eb1a2921ec8302b11bf5f3195c93cf66c2da
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
predefined char classes, so making rustIdent consistent with actual
66
Rust identifiers will be a bit difficult -->
77
<!ENTITY rustIdent "[a-zA-Z_][a-zA-Z_0-9]*">
8+
<!ENTITY rustIntSuf "([iu](8|16|32|64)?)?">
89
]>
910
<language name="Rust" version="0.6" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
1011
<highlighting>
@@ -198,10 +199,10 @@
198199
<keyword String="cconstants" attribute="CConstant" context="#stay"/>
199200
<Detect2Chars char="/" char1="/" attribute="Comment" context="Commentar 1"/>
200201
<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"/>
203204
<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"/>
205206
<RegExpr String="&rustIdent;::" attribute="Scope"/>
206207
<RegExpr String="&rustIdent;!" attribute="Macro"/>
207208
<RegExpr String="&apos;&rustIdent;(?!&apos;)" attribute="Lifetime"/>

0 commit comments

Comments
 (0)