aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/strace/highlights.scm54
-rw-r--r--queries/strace/injections.scm2
2 files changed, 56 insertions, 0 deletions
diff --git a/queries/strace/highlights.scm b/queries/strace/highlights.scm
new file mode 100644
index 000000000..fff706f01
--- /dev/null
+++ b/queries/strace/highlights.scm
@@ -0,0 +1,54 @@
+[
+ "killed"
+ "by"
+ "exited"
+ "with"
+ "<unfinished ...>"
+ "<..."
+ "resumed>"
+] @keyword
+
+[
+ (errorName)
+ (errorDescription)
+] @exception
+
+(syscall) @function.builtin
+
+; Literals
+
+(integer) @number
+
+(pointer) @number.special
+
+(value) @label
+
+(string) @string
+
+[
+ "="
+ "|"
+ "*"
+ "&&"
+ "=="
+] @operator
+
+; Punctuation
+
+[
+ "+++"
+ "---"
+ "..."
+ "~"
+] @punctuation.special
+
+[ "(" ")" "[" "]" ] @punctuation.bracket
+
+[
+ ","
+ "=>"
+] @punctuation.delimiter
+
+(comment) @comment
+
+(ERROR) @error
diff --git a/queries/strace/injections.scm b/queries/strace/injections.scm
new file mode 100644
index 000000000..2659fdc47
--- /dev/null
+++ b/queries/strace/injections.scm
@@ -0,0 +1,2 @@
+((comment) @injection.language
+ (#set! @injection.language "comment"))