Refresh generated neovim config
This commit is contained in:
@ -132,11 +132,6 @@
|
||||
(new_expression
|
||||
constructor: (identifier) @constructor)
|
||||
|
||||
; Variables
|
||||
;----------
|
||||
(namespace_import
|
||||
(identifier) @module)
|
||||
|
||||
; Decorators
|
||||
;----------
|
||||
(decorator
|
||||
@ -302,6 +297,19 @@
|
||||
"}"
|
||||
] @punctuation.special) @none
|
||||
|
||||
; Imports
|
||||
;----------
|
||||
(namespace_import
|
||||
"*" @character.special
|
||||
(identifier) @module)
|
||||
|
||||
(namespace_export
|
||||
"*" @character.special
|
||||
(identifier) @module)
|
||||
|
||||
(export_statement
|
||||
"*" @character.special)
|
||||
|
||||
; Keywords
|
||||
;----------
|
||||
[
|
||||
|
||||
@ -59,10 +59,11 @@
|
||||
(statement_block
|
||||
"{" @indent.branch)
|
||||
|
||||
(parenthesized_expression
|
||||
("("
|
||||
(_)
|
||||
")" @indent.end))
|
||||
((parenthesized_expression
|
||||
"("
|
||||
(_)
|
||||
")" @indent.end) @_outer
|
||||
(#not-has-parent? @_outer if_statement))
|
||||
|
||||
[
|
||||
"}"
|
||||
@ -75,3 +76,7 @@
|
||||
(comment)
|
||||
(ERROR)
|
||||
] @indent.auto
|
||||
|
||||
(if_statement
|
||||
consequence: (_) @indent.dedent
|
||||
(#not-kind-eq? @indent.dedent statement_block)) @indent.begin
|
||||
|
||||
@ -43,6 +43,25 @@
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "html"))
|
||||
|
||||
; 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)
|
||||
]
|
||||
arguments: [
|
||||
(arguments
|
||||
(template_string) @injection.content)
|
||||
(template_string) @injection.content
|
||||
]
|
||||
(#eq? @injection.language "sql")
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children))
|
||||
|
||||
(call_expression
|
||||
function: [
|
||||
(await_expression
|
||||
|
||||
Reference in New Issue
Block a user