mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,18 +1,15 @@
|
|||
;; -----------------------------------------------------------------------------
|
||||
;; General language injection
|
||||
|
||||
; -----------------------------------------------------------------------------
|
||||
; General language injection
|
||||
(quasiquote
|
||||
((quoter) @injection.language)
|
||||
((quasiquote_body) @injection.content)
|
||||
)
|
||||
((quoter) @injection.language)
|
||||
((quasiquote_body) @injection.content))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
;; -----------------------------------------------------------------------------
|
||||
;; shakespeare library
|
||||
;; NOTE: doesn't support templating
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
; -----------------------------------------------------------------------------
|
||||
; shakespeare library
|
||||
; NOTE: doesn't support templating
|
||||
; TODO: add once CoffeeScript parser is added
|
||||
; ; CoffeeScript: Text.Coffee
|
||||
; (quasiquote
|
||||
|
|
@ -20,58 +17,52 @@
|
|||
; (#eq? @_name "coffee")
|
||||
; ((quasiquote_body) @injection.content
|
||||
; (#set! injection.language "coffeescript")))
|
||||
|
||||
; CSS: Text.Cassius, Text.Lucius
|
||||
(quasiquote
|
||||
(quoter) @_name
|
||||
(#any-of? @_name "cassius" "lucius")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "css"))
|
||||
(quoter) @_name
|
||||
(#any-of? @_name "cassius" "lucius")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "css"))
|
||||
|
||||
; HTML: Text.Hamlet
|
||||
(quasiquote
|
||||
(quoter) @_name
|
||||
(#any-of? @_name "shamlet" "xshamlet" "hamlet" "xhamlet" "ihamlet")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "html"))
|
||||
(quoter) @_name
|
||||
(#any-of? @_name "shamlet" "xshamlet" "hamlet" "xhamlet" "ihamlet")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "html"))
|
||||
|
||||
; JS: Text.Julius
|
||||
(quasiquote
|
||||
(quoter) @_name
|
||||
(#any-of? @_name "js" "julius")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "javascript"))
|
||||
(quoter) @_name
|
||||
(#any-of? @_name "js" "julius")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
; TS: Text.TypeScript
|
||||
(quasiquote
|
||||
(quoter) @_name
|
||||
(#any-of? @_name "tsc" "tscJSX")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "typescript"))
|
||||
|
||||
|
||||
;; -----------------------------------------------------------------------------
|
||||
;; HSX
|
||||
(quoter) @_name
|
||||
(#any-of? @_name "tsc" "tscJSX")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "typescript"))
|
||||
|
||||
; -----------------------------------------------------------------------------
|
||||
; HSX
|
||||
(quasiquote
|
||||
(quoter) @_name
|
||||
(#eq? @_name "hsx")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "html"))
|
||||
|
||||
;; -----------------------------------------------------------------------------
|
||||
;; Inline JSON from aeson
|
||||
(quoter) @_name
|
||||
(#eq? @_name "hsx")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "html"))
|
||||
|
||||
; -----------------------------------------------------------------------------
|
||||
; Inline JSON from aeson
|
||||
(quasiquote
|
||||
(quoter) @_name
|
||||
(#eq? @_name "aesonQQ")
|
||||
((quasiquote_body) @injection.content)
|
||||
(#set! injection.language "json"))
|
||||
|
||||
|
||||
;; -----------------------------------------------------------------------------
|
||||
;; SQL
|
||||
|
||||
; -----------------------------------------------------------------------------
|
||||
; SQL
|
||||
; postgresql-simple
|
||||
(quasiquote
|
||||
(quoter) @injection.language
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue