injections.scm 864 B

1234567891011121314151617181920212223242526272829303132333435
  1. (lua_statement
  2. (script
  3. (body) @injection.content
  4. (#set! injection.language "lua")))
  5. (lua_statement
  6. (chunk) @injection.content
  7. (#set! injection.language "lua"))
  8. (ruby_statement
  9. (script
  10. (body) @injection.content
  11. (#set! injection.language "ruby")))
  12. (ruby_statement
  13. (chunk) @injection.content
  14. (#set! injection.language "ruby"))
  15. (python_statement
  16. (script
  17. (body) @injection.content
  18. (#set! injection.language "python")))
  19. (python_statement
  20. (chunk) @injection.content
  21. (#set! injection.language "python"))
  22. ((set_item
  23. option: (option_name) @_option
  24. value: (set_value) @injection.content)
  25. (#any-of? @_option
  26. "includeexpr" "inex" "printexpr" "pexpr" "formatexpr" "fex" "indentexpr" "inde" "foldtext" "fdt"
  27. "foldexpr" "fde" "diffexpr" "dex" "patchexpr" "pex" "charconvert" "ccv")
  28. (#set! injection.language "vim"))