mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
34
runtime/queries/regex/highlights.scm
Normal file
34
runtime/queries/regex/highlights.scm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
;; 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.regex
|
||||
|
||||
(class_character) @constant
|
||||
|
||||
[
|
||||
(control_letter_escape)
|
||||
(character_class_escape)
|
||||
(control_escape)
|
||||
(start_assertion)
|
||||
(end_assertion)
|
||||
(boundary_assertion)
|
||||
(non_boundary_assertion)
|
||||
] @string.escape
|
||||
|
||||
[ "*" "+" "?" "|" "=" "!" ] @operator
|
||||
Loading…
Add table
Add a link
Reference in a new issue