diff options
| author | Elwardi <elwardifadeli@gmail.com> | 2022-01-16 18:44:33 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-16 18:59:29 +0100 |
| commit | 82fcdb2a2aa3475cffbc0ba55254ffb69a3d506b (patch) | |
| tree | 5f012f6e0a6a156ae47c20578375d1b45224f0ba /queries | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-82fcdb2a2aa3475cffbc0ba55254ffb69a3d506b.tar nvim-treesitter-82fcdb2a2aa3475cffbc0ba55254ffb69a3d506b.tar.gz nvim-treesitter-82fcdb2a2aa3475cffbc0ba55254ffb69a3d506b.tar.bz2 nvim-treesitter-82fcdb2a2aa3475cffbc0ba55254ffb69a3d506b.tar.lz nvim-treesitter-82fcdb2a2aa3475cffbc0ba55254ffb69a3d506b.tar.xz nvim-treesitter-82fcdb2a2aa3475cffbc0ba55254ffb69a3d506b.tar.zst nvim-treesitter-82fcdb2a2aa3475cffbc0ba55254ffb69a3d506b.zip | |
support PyFoam syntax in OpenFOAM files
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/foam/highlights.scm | 5 | ||||
| -rw-r--r-- | queries/foam/injections.scm | 3 |
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) |
