Highlight reference types directive in TypeScript (#11039)
Before: <img width="443" alt="image" src="https://github.com/zed-industries/zed/assets/45585937/a8037edb-ed5b-4b12-92b4-2d409442ad4b"> After: <img width="429" alt="image" src="https://github.com/zed-industries/zed/assets/45585937/1fd66523-d667-4041-952f-c1125e7feab9"> Release Notes: - Add typescript reference types directive highlighted(#11001)
This commit is contained in:
parent
8a79535b84
commit
f72cf2afe3
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
((comment) @content
|
||||
(#set! "language" "jsdoc"))
|
||||
|
||||
(((comment) @reference
|
||||
(#match? @reference "^///\\s+<reference\\s+types=\"\\S+\"\\s*/>\\s*$")) @content
|
||||
(#set! "language" "html"))
|
||||
|
||||
((regex) @content
|
||||
(#set! "language" "regex"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue