diff options
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/foam/highlights.scm | 5 | ||||
| -rw-r--r-- | queries/foam/injections.scm | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/lockfile.json b/lockfile.json index e5dddf10c..d75e52cf3 100644 --- a/lockfile.json +++ b/lockfile.json @@ -66,7 +66,7 @@ "revision": "04e54ab6585dfd4fee6ddfe5849af56f101b6d4f" }, "foam": { - "revision": "4662b2548b37a2a9229cc9549861b5390a107a38" + "revision": "fdb7f14b885abfc4df57728c9b2a2f2ad24d3cb7" }, "fortran": { "revision": "f0f2f100952a353e64e26b0fa710b4c296d7af13" 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) |
