mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
53
runtime/queries/regex/highlights.scm
Normal file
53
runtime/queries/regex/highlights.scm
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
; Forked from tree-sitter-regex
|
||||
; The MIT License (MIT) Copyright (c) 2014 Max Brunsfeld
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"(?"
|
||||
"(?:"
|
||||
"(?<"
|
||||
"<"
|
||||
">"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
(group_name) @property
|
||||
|
||||
; These are escaped special characters that lost their special meaning
|
||||
; -> no special highlighting
|
||||
(identity_escape) @string.regexp
|
||||
|
||||
(class_character) @constant
|
||||
|
||||
(decimal_digits) @number
|
||||
|
||||
[
|
||||
(control_letter_escape)
|
||||
(character_class_escape)
|
||||
(control_escape)
|
||||
(boundary_assertion)
|
||||
(non_boundary_assertion)
|
||||
] @string.escape
|
||||
|
||||
[
|
||||
"*"
|
||||
"+"
|
||||
"?"
|
||||
"|"
|
||||
"="
|
||||
"!"
|
||||
"-"
|
||||
"\\k"
|
||||
(lazy)
|
||||
] @operator
|
||||
|
||||
[
|
||||
(start_assertion)
|
||||
(end_assertion)
|
||||
","
|
||||
] @punctuation.delimiter
|
||||
|
||||
(any_character) @variable.builtin
|
||||
Loading…
Add table
Add a link
Reference in a new issue