mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
Add OpenFOAM parser
This commit is contained in:
parent
50fee51d35
commit
16e77495c4
9 changed files with 131 additions and 0 deletions
9
queries/foam/injections.scm
Normal file
9
queries/foam/injections.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
;; Pass code blocks to Cpp highlighter
|
||||
(code (code_body) @cpp)
|
||||
|
||||
;; Pass identifiers to Go highlighter (Cheating I know)
|
||||
;;((identifier) @lua)
|
||||
|
||||
;; Highlight regex syntax inside literal strings
|
||||
((string_literal) @regex)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue