Skip to content

Commit 755904a

Browse files
jonathanpoelenchristoph-cullmann
authored andcommitted
C: remove ' as digit separator
Summary: This is not in C standard, but only in C++ Reviewers: #framework_syntax_highlighting, dhaumann, cullmann Reviewed By: #framework_syntax_highlighting, cullmann Subscribers: kwrite-devel, kde-frameworks-devel Tags: #kate, #frameworks Differential Revision: https://phabricator.kde.org/D28044
1 parent c5f482e commit 755904a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

data/syntax/c.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE language SYSTEM "language.dtd"
33
[
4-
<!ENTITY int "(?:[0-9](?:'?[0-9]+)*)">
5-
<!ENTITY hex_int "(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f]+)*)">
4+
<!ENTITY int "(?:[0-9]+)">
5+
<!ENTITY hex_int "(?:[0-9A-Fa-f]+)">
66
<!ENTITY exp_float "(?:[eE][+-]?&int;)">
77
<!ENTITY exp_hexfloat "(?:[pP][-+]?&int;)">
88

99
<!ENTITY ispphash "(?:#|&#37;\:|\?\?=)">
1010
<!ENTITY pphash "&ispphash;\s*">
1111
]>
1212
<language name="C" section="Sources"
13-
version="7" kateversion="5.0"
13+
version="8" kateversion="5.0"
1414
indenter="cstyle"
1515
extensions="*.c;*.C;*.h"
1616
mimetype="text/x-csrc;text/x-c++src;text/x-chdr"
@@ -232,9 +232,9 @@
232232

233233
<context name="Integer" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
234234
<RegExpr attribute="Hex" context="IntSuffix" String="0[xX]&hex_int;" />
235-
<RegExpr attribute="Binary" context="IntSuffix" String="0[Bb][01](?:'?[01]+)*" />
236-
<RegExpr attribute="Octal" context="IntSuffix" String="0(?:'?[0-7]+)+" />
237-
<RegExpr attribute="Decimal" context="IntSuffix" String="0(?![xXbB0-9])|[1-9](?:'?[0-9]+)*" />
235+
<RegExpr attribute="Binary" context="IntSuffix" String="0[Bb][01]+" />
236+
<RegExpr attribute="Octal" context="IntSuffix" String="0[0-7]+" />
237+
<RegExpr attribute="Decimal" context="IntSuffix" String="0(?![xXbB0-9])|[1-9][0-9]*" />
238238
<RegExpr attribute="Error" context="#pop" String="[._0-9A-Za-z']+" />
239239
</context>
240240

0 commit comments

Comments
 (0)