neovim

Personal neovim configuration files
git clone git://gtms.dev/neovim
Log | Files | Refs

injections.scm (1147B)


      1 ;; extends
      2 
      3 ; triple quotes
      4 (annotation
      5  (arguments 
      6   (named_argument 
      7    (label (identifier) @_identifier)
      8    (list_literal (string_literal) @injection.content)
      9   )
     10  ) 
     11  (#eq? @_identifier "styles")
     12  (#lua-match? @injection.content "^'''.*'''$")
     13  (#offset! @injection.content 0 3 0 -3)
     14  (#set! injection.language "css")
     15 )
     16 
     17 ; Single quotes
     18 (annotation
     19  (arguments 
     20   (named_argument 
     21    (label (identifier) @_identifier)
     22    (list_literal (string_literal) @injection.content)
     23   )
     24  ) 
     25  (#eq? @_identifier "styles")
     26  (#offset! @injection.content 0 1 0 -1)
     27  (#set! injection.language "css")
     28 )
     29 
     30 ; triple quotes
     31 (annotation
     32  (arguments 
     33   (named_argument 
     34    (label (identifier) @_identifier)
     35    (string_literal) @injection.content
     36   )
     37  ) 
     38  (#eq? @_identifier "template")
     39  (#lua-match? @injection.content "^'''.*'''$")
     40  (#offset! @injection.content 0 3 0 -3)
     41  (#set! injection.language "html")
     42 )
     43 
     44 ; Single quotes
     45 (annotation
     46  (arguments 
     47   (named_argument 
     48    (label (identifier) @_identifier)
     49    (string_literal) @injection.content
     50   )
     51  ) 
     52  (#eq? @_identifier "template")
     53  (#offset! @injection.content 0 1 0 -1)
     54  (#set! injection.language "html")
     55 )
     56 
     57