mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix: typos
This commit is contained in:
parent
3a7b5a9fb4
commit
9bc21966f2
7 changed files with 8 additions and 8 deletions
|
|
@ -249,9 +249,9 @@ function M.get_indent(lnum)
|
|||
if is_in_err and not q["indent.align"][node:id()] then
|
||||
-- only when the node is in error, promote the
|
||||
-- first child's aligned indent to the error node
|
||||
-- to work around ((ERROR "X" . (_)) @aligned_indent (#set! "delimeter" "AB"))
|
||||
-- to work around ((ERROR "X" . (_)) @aligned_indent (#set! "delimiter" "AB"))
|
||||
-- matching for all X, instead set do
|
||||
-- (ERROR "X" @aligned_indent (#set! "delimeter" "AB") . (_))
|
||||
-- (ERROR "X" @aligned_indent (#set! "delimiter" "AB") . (_))
|
||||
-- and we will fish it out here.
|
||||
for c in node:iter_children() do
|
||||
if q["indent.align"][c:id()] then
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
";"
|
||||
] @punctuation.delimiter
|
||||
|
||||
; Default general color defination
|
||||
; Default general color definition
|
||||
(identifier) @variable
|
||||
|
||||
(type_identifier) @type
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
|
||||
; NOTE: The following has been commented out due to issues with spaces in the
|
||||
; list marker nodes generated by the parser. If those spaces ever get captured
|
||||
; by a different node (e.g. block_continuation) we can safely readd these
|
||||
; by a different node (e.g. block_continuation) we can safely re-add these
|
||||
; conceals.
|
||||
; ;; Conceal bullet points
|
||||
; ([(list_marker_plus) (list_marker_star)]
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
(#eq? @_string_prefix "&"))
|
||||
|
||||
; sql in generalized_strings
|
||||
; and anyhting you like as long as the function name is the same as the injected language's parser
|
||||
; and anything you like as long as the function name is the same as the injected language's parser
|
||||
(generalized_string
|
||||
function: (identifier) @injection.language
|
||||
(string_content) @injection.content
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
(simple_type_name)
|
||||
] @type)
|
||||
|
||||
; Buitin constants and Keywords
|
||||
; Builtin constants and Keywords
|
||||
[
|
||||
"true"
|
||||
"false"
|
||||
|
|
|
|||
|
|
@ -8,5 +8,5 @@
|
|||
|
||||
((verbatim_string) @injection.content
|
||||
(#lua-match? @injection.content "@\"<!DOCTYPE html>")
|
||||
(#set! injection.languge "html")
|
||||
(#set! injection.language "html")
|
||||
(#offset! @injection.content 0 2 0 -1))
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ local format_queries = [[
|
|||
(anonymous_node (identifier) @format.keep)
|
||||
(field_definition
|
||||
name: (_)
|
||||
":" @format.indent.begin @format.append-newline ; surpress trailing whitespaces with forced newlines
|
||||
":" @format.indent.begin @format.append-newline ; suppress trailing whitespaces with forced newlines
|
||||
[
|
||||
(named_node [ (named_node) (list) (grouping) (anonymous_node) (field_definition) ])
|
||||
(list "[" . (_) . (_) "]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue