summaryrefslogtreecommitdiff
path: root/queries/foam/injections.scm
blob: 4afdb63b043d7e98a7758e6c7cb2b1f8017f3fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
;; 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)

;; Highlight PyFoam syntax as Python statements
(pyfoam_variable code_body: (_) @python)
(pyfoam_expression code_body: (_) @python)