Update generated neovim config
This commit is contained in:
@ -7,11 +7,7 @@
|
||||
|
||||
; html(`...`), html`...`, sql(`...`), etc.
|
||||
(call_expression
|
||||
function: [
|
||||
(await_expression
|
||||
(identifier) @injection.language)
|
||||
(identifier) @injection.language
|
||||
]
|
||||
function: (identifier) @injection.language
|
||||
arguments: [
|
||||
(arguments
|
||||
(template_string) @injection.content)
|
||||
@ -27,13 +23,8 @@
|
||||
|
||||
; svg`...` or svg(`...`)
|
||||
(call_expression
|
||||
function: [
|
||||
(await_expression
|
||||
(identifier) @_name
|
||||
(#eq? @_name "svg"))
|
||||
((identifier) @_name
|
||||
(#eq? @_name "svg"))
|
||||
]
|
||||
function: (identifier) @_name
|
||||
(#eq? @_name "svg")
|
||||
arguments: [
|
||||
(arguments
|
||||
(template_string) @injection.content)
|
||||
@ -46,13 +37,8 @@
|
||||
; Vercel PostgreSQL
|
||||
; foo.sql`...` or foo.sql(`...`)
|
||||
(call_expression
|
||||
function: [
|
||||
(await_expression
|
||||
(member_expression
|
||||
property: (property_identifier) @injection.language))
|
||||
(member_expression
|
||||
property: (property_identifier) @injection.language)
|
||||
]
|
||||
function: (member_expression
|
||||
property: (property_identifier) @injection.language)
|
||||
arguments: [
|
||||
(arguments
|
||||
(template_string) @injection.content)
|
||||
@ -63,47 +49,29 @@
|
||||
(#set! injection.include-children))
|
||||
|
||||
(call_expression
|
||||
function: [
|
||||
(await_expression
|
||||
(identifier) @_name
|
||||
(#eq? @_name "gql"))
|
||||
((identifier) @_name
|
||||
(#eq? @_name "gql"))
|
||||
]
|
||||
arguments: ((template_string) @injection.content
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "graphql")))
|
||||
function: (identifier) @_name
|
||||
(#eq? @_name "gql")
|
||||
arguments: (template_string) @injection.content
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "graphql"))
|
||||
|
||||
(call_expression
|
||||
function: [
|
||||
(await_expression
|
||||
(identifier) @_name
|
||||
(#eq? @_name "hbs"))
|
||||
((identifier) @_name
|
||||
(#eq? @_name "hbs"))
|
||||
]
|
||||
arguments: ((template_string) @injection.content
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "glimmer")))
|
||||
|
||||
((glimmer_template) @injection.content
|
||||
function: (identifier) @_name
|
||||
(#eq? @_name "hbs")
|
||||
arguments: (template_string) @injection.content
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "glimmer"))
|
||||
|
||||
; css`<css>`, keyframes`<css>`
|
||||
(call_expression
|
||||
function: [
|
||||
(await_expression
|
||||
(identifier) @_name
|
||||
(#any-of? @_name "css" "keyframes"))
|
||||
((identifier) @_name
|
||||
(#any-of? @_name "css" "keyframes"))
|
||||
]
|
||||
arguments: ((template_string) @injection.content
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "styled")))
|
||||
function: (identifier) @_name
|
||||
(#any-of? @_name "css" "keyframes")
|
||||
arguments: (template_string) @injection.content
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "styled"))
|
||||
|
||||
; styled.div`<css>`
|
||||
(call_expression
|
||||
|
||||
Reference in New Issue
Block a user