mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(c,cpp,fsharp,idl,powershell,sql,systemtap): remove unneeded escapes
This commit is contained in:
parent
25f08b82af
commit
864e75a85d
7 changed files with 8 additions and 8 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
(#set! injection.language "re2c"))
|
(#set! injection.language "re2c"))
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
(#lua-match? @injection.content "/[*/][!*/]<?[^a-zA-Z]")
|
||||||
(#set! injection.language "doxygen"))
|
(#set! injection.language "doxygen"))
|
||||||
|
|
||||||
((call_expression
|
((call_expression
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
; inherits: c
|
; inherits: c
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
(#lua-match? @injection.content "/[*/][!*/]<?[^a-zA-Z]")
|
||||||
(#set! injection.language "doxygen"))
|
(#set! injection.language "doxygen"))
|
||||||
|
|
||||||
(raw_string_literal
|
(raw_string_literal
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
((argument_patterns
|
((argument_patterns
|
||||||
(long_identifier
|
(long_identifier
|
||||||
(identifier) @character.special))
|
(identifier) @character.special))
|
||||||
(#lua-match? @character.special "^\_.*"))
|
(#lua-match? @character.special "^_.*"))
|
||||||
|
|
||||||
(member_defn
|
(member_defn
|
||||||
(method_or_prop_defn
|
(method_or_prop_defn
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
(#lua-match? @injection.content "/[*/][!*/]<?[^a-zA-Z]")
|
||||||
(#set! injection.language "doxygen"))
|
(#set! injection.language "doxygen"))
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#not-lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]")
|
(#not-lua-match? @injection.content "/[*/][!*/]<?[^a-zA-Z]")
|
||||||
(#not-lua-match? @injection.content "//@[a-zA-Z]")
|
(#not-lua-match? @injection.content "//@[a-zA-Z]")
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@
|
||||||
"$true"))
|
"$true"))
|
||||||
|
|
||||||
((variable) @variable.builtin
|
((variable) @variable.builtin
|
||||||
(#lua-match? @variable.builtin "^\$env:"))
|
(#lua-match? @variable.builtin "^$env:"))
|
||||||
|
|
||||||
(data_name
|
(data_name
|
||||||
(simple_name) @constant)
|
(simple_name) @constant)
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
(#lua-match? @number "^%d+$"))
|
(#lua-match? @number "^%d+$"))
|
||||||
|
|
||||||
((literal) @number.float
|
((literal) @number.float
|
||||||
(#lua-match? @number.float "^[-]?%d*\.%d*$"))
|
(#lua-match? @number.float "^[-]?%d*%.%d*$"))
|
||||||
|
|
||||||
(parameter) @variable.parameter
|
(parameter) @variable.parameter
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
"sprintln"))
|
"sprintln"))
|
||||||
|
|
||||||
((identifier) @variable.builtin
|
((identifier) @variable.builtin
|
||||||
(#lua-match? @variable.builtin "^\$+[0-9A-Z_a-z]+\$*$"))
|
(#lua-match? @variable.builtin "^$+[0-9A-Z_a-z]+$*$"))
|
||||||
|
|
||||||
(shebang_line) @keyword.directive
|
(shebang_line) @keyword.directive
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue