mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
support PyFoam syntax in OpenFOAM files
This commit is contained in:
parent
5519ced35b
commit
82fcdb2a2a
3 changed files with 9 additions and 1 deletions
|
|
@ -66,7 +66,7 @@
|
||||||
"revision": "04e54ab6585dfd4fee6ddfe5849af56f101b6d4f"
|
"revision": "04e54ab6585dfd4fee6ddfe5849af56f101b6d4f"
|
||||||
},
|
},
|
||||||
"foam": {
|
"foam": {
|
||||||
"revision": "4662b2548b37a2a9229cc9549861b5390a107a38"
|
"revision": "fdb7f14b885abfc4df57728c9b2a2f2ad24d3cb7"
|
||||||
},
|
},
|
||||||
"fortran": {
|
"fortran": {
|
||||||
"revision": "f0f2f100952a353e64e26b0fa710b4c296d7af13"
|
"revision": "f0f2f100952a353e64e26b0fa710b4c296d7af13"
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,11 @@
|
||||||
"}"
|
"}"
|
||||||
"#{"
|
"#{"
|
||||||
"#}"
|
"#}"
|
||||||
|
"|-"
|
||||||
|
"-|"
|
||||||
|
"<!--("
|
||||||
|
")-->"
|
||||||
|
"$$"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,6 @@
|
||||||
;; Highlight regex syntax inside literal strings
|
;; Highlight regex syntax inside literal strings
|
||||||
((string_literal) @regex)
|
((string_literal) @regex)
|
||||||
|
|
||||||
|
;; Highlight PyFoam syntax as Python statements
|
||||||
|
(pyfoam_variable code_body: (_) @python)
|
||||||
|
(pyfoam_expression code_body: (_) @python)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue