Skip to content

Commit a8ae76d

Browse files
fix: hexadecimal number highlighting
1 parent a327fae commit a8ae76d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scarpet.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
1010
Full Scarpet syntax highlighting for KSyntaxHighlighting.
1111
12-
Last Update: 08 Jan. 2024 (Version 2)
12+
Last Update: 11 Jan. 2024 (Version 3)
1313
-->
14-
<language name="Scarpet" version="2" kateversion="2.4" section="Scripts" extensions="*.sc;*.scl" author="Federico Carboni">
14+
<language name="Scarpet" version="3" kateversion="2.4" section="Scripts" extensions="*.sc;*.scl" author="Federico Carboni">
1515
<highlighting>
1616
<list name="controlflow">
1717
<item>if</item>
@@ -488,11 +488,11 @@
488488

489489
<!-- FindNumbers -->
490490
<context attribute="Normal Text" lineEndContext="#stay" name="FindNumbers">
491+
<HlCHex attribute="Hex" />
491492
<!-- KSyntaxHighlighting's Float detector is not correct as it allows .123 syntax
492493
Scarpet only allows 0.123 -->
493494
<RegExpr attribute="Float" String="(\b[0-9]+\.[0-9]*)|(\b[0-9]+)([eE][-+]?[0-9]+)?" />
494495
<RegExpr attribute="Error" String="\b\.[0-9]+" />
495-
<HlCHex attribute="Hex" />
496496
<Int attribute="Decimal" />
497497
</context>
498498

0 commit comments

Comments
 (0)