Fix regex search colors (#25962)
In #25005 we added regex syntax highlighting to search; but the existing regex grammar highlighted every character as a string which was hard to read. This flips so that characters are not highlighted, and brackets, etc. are. <img width="346" alt="Screenshot 2025-03-03 at 14 39 35" src="https://github.com/user-attachments/assets/f7d3ae9c-fb5c-45eb-a5e9-41a330fbe940" /> Release Notes: - Fixed regex search box being overly green
This commit is contained in:
parent
0776fa8f31
commit
6faa7cd722
1 changed files with 2 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
] @string
|
||||
|
||||
(group_name) @property
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
|||
"|"
|
||||
"="
|
||||
"!"
|
||||
(any_character)
|
||||
] @operator
|
||||
|
||||
(count_quantifier
|
||||
|
@ -44,7 +45,3 @@
|
|||
"^" @operator
|
||||
(class_range "-" @operator)
|
||||
])
|
||||
|
||||
(class_character) @constant.character
|
||||
|
||||
(pattern_character) @string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue