aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/cpp/x.cxx
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
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')
-rw-r--r--lexilla/test/examples/cpp/x.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/lexilla/test/examples/cpp/x.cxx b/lexilla/test/examples/cpp/x.cxx
index 384997072..8e42167b2 100644
--- a/lexilla/test/examples/cpp/x.cxx
+++ b/lexilla/test/examples/cpp/x.cxx
@@ -13,4 +13,8 @@ int main() {
double x[] = {3.14159,6.02e23,1.6e-19,1.0+1};
int y[] = {75,0113,0x4b};
printf("hello world %d %g\n", y[0], x[0]);
+
+ // JavaScript regular expression (14) tests
+ let a = /a/;
+ let b = /[a-z]+/gi;
}