aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJad Altahan <xviyy@aol.com>2019-03-09 08:15:45 +1100
committerJad Altahan <xviyy@aol.com>2019-03-09 08:15:45 +1100
commit729c6eb81d8433c75d310ea321371bd9b709ff19 (patch)
tree7c7a7ebed3901c93cb0b22f0f94331e007127778 /test
parent81b76f7f8952f1fc9c0c14a4c26842e141466625 (diff)
downloadscintilla-mirror-729c6eb81d8433c75d310ea321371bd9b709ff19.tar.gz
Backport: Feature [feature-requests:#1268]. Improve the styling of numbers in Nim
Improvements for SCE_NIM_NUMBER. Backport of changeset 7310:3710c193b696.
Diffstat (limited to 'test')
-rw-r--r--test/examples/x.nim8
-rw-r--r--test/examples/x.nim.styled8
2 files changed, 16 insertions, 0 deletions
diff --git a/test/examples/x.nim b/test/examples/x.nim
index ac8a274f4..874940d47 100644
--- a/test/examples/x.nim
+++ b/test/examples/x.nim
@@ -18,3 +18,11 @@ let standardTripleLitRawStr = R"""A triple-double raw string\""""
# Style of 'customIdent' is determined by lexer.nim.raw.strings.highlight.ident. 16 if false, 6 or 10 if true
let customDoubleLitRawStr = customIdent"A string\"
let customTripleLitRawStr = customIdent"""A triple-double raw string\""""
+
+# Feature #1268
+10_000
+10__000
+10_
+1....5
+1.ident
+1._ident
diff --git a/test/examples/x.nim.styled b/test/examples/x.nim.styled
index 2753d005e..3a05c04b8 100644
--- a/test/examples/x.nim.styled
+++ b/test/examples/x.nim.styled
@@ -18,3 +18,11 @@
{3}# Style of 'customIdent' is determined by lexer.nim.raw.strings.highlight.ident. 16 if false, 6 or 10 if true
{8}let{0} {16}customDoubleLitRawStr{0} {15}={0} {16}customIdent{6}"A string\"{0}
{8}let{0} {16}customTripleLitRawStr{0} {15}={0} {16}customIdent{10}"""A triple-double raw string\""""{0}
+
+{3}# Feature #1268
+{5}10_000{0}
+{5}10{16}__000{0}
+{5}10{16}_{0}
+{5}1{15}....{5}5{0}
+{5}1{15}.{16}ident{0}
+{5}1{15}.{16}_ident{0}