1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-28 01:00:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/foam/injections.scm

13 lines
351 B
Scheme
Raw Normal View History

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