-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tree-sitter-comment Fix #1164 * fix precedence in tree-sitter-comment highlights connects #1170 * set injection-regex for comment language * remove comment filetype * fix comment injections for neovim-style injections tags * add comment injections for elixir * remove f.comment * fix spacing in .gitmodules * run 'cargo xtask docgen' Co-authored-by: Ivan Tham <[email protected]>
- Loading branch information
1 parent
7c01d92
commit e72786d
Showing
13 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule tree-sitter-comment
added at
5dd3c6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[ | ||
"(" | ||
")" | ||
] @punctuation.bracket | ||
|
||
":" @punctuation.delimiter | ||
|
||
((tag (name) @warning) | ||
(#match? @warning "^(TODO|HACK|WARNING)$")) | ||
|
||
("text" @warning | ||
(#match? @warning "^(TODO|HACK|WARNING)$")) | ||
|
||
((tag (name) @error) | ||
(match? @error "^(FIXME|XXX|BUG)$")) | ||
|
||
("text" @error | ||
(match? @error "^(FIXME|XXX|BUG)$")) | ||
|
||
(tag | ||
(name) @ui.text | ||
(user)? @constant) | ||
|
||
; Issue number (#123) | ||
("text" @constant.numeric | ||
(#match? @constant.numeric "^#[0-9]+$")) | ||
|
||
; User mention (@user) | ||
("text" @tag | ||
(#match? @tag "^[@][a-zA-Z0-9_-]+$")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
((comment) @injection.content | ||
(#set! injection.language "comment")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
(preproc_arg) @glsl | ||
((preproc_arg) @injection.content | ||
(#set! injection.language "glsl")) | ||
|
||
(comment) @comment | ||
((comment) @injection.content | ||
(#set! injection.language "comment")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
; TODO: re-add when markdown is added. | ||
; ((triple_string) @markdown | ||
; (#offset! @markdown 0 3 0 -3)) | ||
; ((triple_string) @injection.content | ||
; (#offset! @injection.content 0 3 0 -3) | ||
; (#set! injection.language "markdown")) | ||
|
||
(comment) @comment | ||
((comment) @injection.content | ||
(#set! injection.language "comment")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
(comment) @comment | ||
(note) @comment | ||
([(comment) (note)] @injection.content | ||
(#set! injection.language "comment")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
((comment) @injection.content | ||
(#set! injection.language "comment")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
((comment) @injection.content | ||
(#set! injection.language "comment")) |