Skip to content

Commit d06b359

Browse files
authored
Update JSON syntax definition from upstream. (#203)
1 parent f804b78 commit d06b359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

skylighting-core/xml/json.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
** https://www.json.org/json-en.html
1414
***************************************************************************
1515
-->
16-
<language name="JSON" section="Markup" version="8" kateversion="2.4" extensions="*.json;.kateproject;.arcconfig;*.geojson;*.gltf;*.theme" mimetype="application/json" author="Sebastian Pipping ([email protected])" license="GPL">
16+
<language name="JSON" section="Markup" version="9" kateversion="2.4" extensions="*.json;*.jsonl;.kateproject;.arcconfig;*.geojson;*.gltf;*.theme;*.cast" mimetype="application/json" author="Sebastian Pipping ([email protected])" license="GPL">
1717
<highlighting>
1818
<list name="Constants">
1919
<item>null</item>
@@ -62,7 +62,7 @@
6262

6363
<keyword String="Constants" context="#stay" attribute="Style_Keyword" />
6464

65-
<RegExpr String="-?\b([1-9][0-9]*\.[0-9]+(?:[eE][+-]?[0-9]+)?)" context="#stay" attribute="Style_Float" />
65+
<RegExpr String="-?\b((0\b|[1-9][0-9]*)\.[0-9]+(?:[eE][+-]?[0-9]+)?)" context="#stay" attribute="Style_Float" />
6666
<RegExpr String="-?\b(0\b|[1-9][0-9]*(?:[eE][+-]?[0-9]+)?)" context="#stay" attribute="Style_Decimal" />
6767
</context>
6868

0 commit comments

Comments
 (0)