support PyFoam syntax in OpenFOAM files

This commit is contained in:
Elwardi 2022-01-16 18:44:33 +01:00 committed by Stephan Seitz
parent 5519ced35b
commit 82fcdb2a2a
3 changed files with 9 additions and 1 deletions

View file

@ -52,6 +52,11 @@
"}"
"#{"
"#}"
"|-"
"-|"
"<!--("
")-->"
"$$"
] @punctuation.bracket
[

View file

@ -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)