aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/foam/highlights.scm5
-rw-r--r--queries/foam/injections.scm3
2 files changed, 8 insertions, 0 deletions
diff --git a/queries/foam/highlights.scm b/queries/foam/highlights.scm
index defa2ce47..86a3bf324 100644
--- a/queries/foam/highlights.scm
+++ b/queries/foam/highlights.scm
@@ -52,6 +52,11 @@
"}"
"#{"
"#}"
+ "|-"
+ "-|"
+ "<!--("
+ ")-->"
+ "$$"
] @punctuation.bracket
[
diff --git a/queries/foam/injections.scm b/queries/foam/injections.scm
index 08d10721c..4afdb63b0 100644
--- a/queries/foam/injections.scm
+++ b/queries/foam/injections.scm
@@ -7,3 +7,6 @@
;; Highlight regex syntax inside literal strings
((string_literal) @regex)
+;; Highlight PyFoam syntax as Python statements
+(pyfoam_variable code_body: (_) @python)
+(pyfoam_expression code_body: (_) @python)