[gtksourceview] Add an example file for JavaScript
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Add an example file for JavaScript
- Date: Wed, 15 Apr 2015 08:27:37 +0000 (UTC)
commit fb384c379d7d1453937c7f405f23ae6ef93b3128
Author: Andreas Fackler <AndreasFackler gmx de>
Date: Mon Apr 13 18:22:13 2015 +0300
Add an example file for JavaScript
https://bugzilla.gnome.org/show_bug.cgi?id=685885
tests/syntax-highlighting/file.js | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/syntax-highlighting/file.js b/tests/syntax-highlighting/file.js
new file mode 100644
index 0000000..4480c4e
--- /dev/null
+++ b/tests/syntax-highlighting/file.js
@@ -0,0 +1,15 @@
+// Regular expressions:
+/abc/
+x = /abc/;
+function_with_regex_arg(/abc/);
+[ /abc/, /def/];
+{ regex: /abc/ };
+(1 === 0) ? /abc/ : /def/;
+/abc/ /* Comment */
+/abc/ // Comment
+var matches = /abc/.exec('Alphabet ... that should contain abc, right?');
+
+// No regex here:
+a = [thing / thing, thing / thing];
+x = a /b/ c / d;
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]