aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/cpp/x.cxx.styled
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-04-13 07:41:08 +1000
committerNeil <nyamatongwe@gmail.com>2020-04-13 07:41:08 +1000
commit1769cc3907d3f06254053ab76bd9e827417f07cf (patch)
tree58230e7b09fd443c78e05121a50635bbd30970f8 /lexilla/test/examples/cpp/x.cxx.styled
parent86d705bdc57ed92b36824229ff441bab7483f4ba (diff)
downloadscintilla-mirror-1769cc3907d3f06254053ab76bd9e827417f07cf.tar.gz
Replace islower function and add tests for JavaScript regular expressions.
Diffstat (limited to 'lexilla/test/examples/cpp/x.cxx.styled')
-rw-r--r--lexilla/test/examples/cpp/x.cxx.styled6
1 files changed, 5 insertions, 1 deletions
diff --git a/lexilla/test/examples/cpp/x.cxx.styled b/lexilla/test/examples/cpp/x.cxx.styled
index b602717a5..c269ed1b4 100644
--- a/lexilla/test/examples/cpp/x.cxx.styled
+++ b/lexilla/test/examples/cpp/x.cxx.styled
@@ -12,5 +12,9 @@
{5}int{0} {11}main{10}(){0} {10}{{0}
{11}double{0} {11}x{10}[]{0} {10}={0} {10}{{4}3.14159{10},{4}6.02e23{10},{4}1.6e-19{10},{4}1.0{10}+{4}1{10}};{0}
{5}int{0} {11}y{10}[]{0} {10}={0} {10}{{4}75{10},{4}0113{10},{4}0x4b{10}};{0}
- {11}printf{10}({6}"hello world %d %g\n"{10},{0} {11}y{10}[{4}0{10}],{0} {11}x{10}[{4}0{10}]);{0}
+ {11}printf{10}({6}"hello world %d %g{27}\n{6}"{10},{0} {11}y{10}[{4}0{10}],{0} {11}x{10}[{4}0{10}]);{0}
+
+ {2}// JavaScript regular expression (14) tests
+{0} {5}let{0} {11}a{0} {10}={0} {14}/a/{10};{0}
+ {5}let{0} {11}b{0} {10}={0} {14}/[a-z]+/gi{10};{0}
{10}}{0}