[gtksourceview: 2/3] tests: add example awk file Changes to be committed: new file: tests/syntax-highlighting/file.aw




commit 4470d64266830bd2fb516d819723415e17a8648c
Author: Akbarkhon Variskhanov <akbarkhon variskhanov gmail com>
Date:   Sat Aug 27 23:06:37 2022 +0500

    tests: add example awk file
     Changes to be committed:
            new file:   tests/syntax-highlighting/file.awk

 tests/syntax-highlighting/file.awk | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
---
diff --git a/tests/syntax-highlighting/file.awk b/tests/syntax-highlighting/file.awk
new file mode 100644
index 00000000..a786d454
--- /dev/null
+++ b/tests/syntax-highlighting/file.awk
@@ -0,0 +1,21 @@
+#!/usr/bin/awk -f
+# This is a comment line.
+
+# Special patterns:
+BEGIN
+END
+
+# Field variables:
+xxx$0xxx
+xx$NFxxx
+
+# String and numeric contansts:
+string = "Hello, World!"
+number = 42
+
+# Patterns:
+/\.'regexpr#"/ { print $0 }
+NR == 1, NR == 5 { printf("%s\n", $0) }
+
+# Statements:
+print string, number


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]