aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lexilla/test/examples/cpp')
-rw-r--r--lexilla/test/examples/cpp/x.cxx7
-rw-r--r--lexilla/test/examples/cpp/x.cxx.styled7
2 files changed, 14 insertions, 0 deletions
diff --git a/lexilla/test/examples/cpp/x.cxx b/lexilla/test/examples/cpp/x.cxx
index 8e42167b2..c1f052882 100644
--- a/lexilla/test/examples/cpp/x.cxx
+++ b/lexilla/test/examples/cpp/x.cxx
@@ -17,4 +17,11 @@ int main() {
// JavaScript regular expression (14) tests
let a = /a/;
let b = /[a-z]+/gi;
+
+ // Escape sequence (27) tests
+ printf("\'\"\?\\\a\b\f\n\r\t\v \P");
+ printf("\0a \013a \019");
+ printf("\x013ac \xdz");
+ printf("\ua34df \uz");
+ printf("\Ua34df7833 \Uz");
}
diff --git a/lexilla/test/examples/cpp/x.cxx.styled b/lexilla/test/examples/cpp/x.cxx.styled
index c269ed1b4..e4241eba2 100644
--- a/lexilla/test/examples/cpp/x.cxx.styled
+++ b/lexilla/test/examples/cpp/x.cxx.styled
@@ -17,4 +17,11 @@
{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}
+
+ {2}// Escape sequence (27) tests
+{0} {11}printf{10}({6}"{27}\'\"\?\\\a\b\f\n\r\t\v{6} {27}\P{6}"{10});{0}
+ {11}printf{10}({6}"{27}\0{6}a {27}\013{6}a {27}\01{6}9"{10});{0}
+ {11}printf{10}({6}"{27}\x013a{6}c {27}\xd{6}z"{10});{0}
+ {11}printf{10}({6}"{27}\ua34d{6}f {27}\u{6}z"{10});{0}
+ {11}printf{10}({6}"{27}\Ua34df783{6}3 {27}\U{6}z"{10});{0}
{10}}{0}