-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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-edoc * fix escape character capture in markdown queries * add field negation operator "!" to tsq highlights
- Loading branch information
1 parent
4f3d0a7
commit 42d780b
Showing
7 changed files
with
88 additions
and
4 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
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,50 @@ | ||
((section | ||
(section_marker) @markup.heading.marker | ||
(section_content) @markup.heading.1 | ||
(section_marker) @markup.heading.marker) | ||
(#eq? @markup.heading.marker "==")) | ||
|
||
((section | ||
(section_marker) @markup.heading.marker | ||
(section_content) @markup.heading.2 | ||
(section_marker) @markup.heading.marker) | ||
(#eq? @markup.heading.marker "===")) | ||
|
||
((section | ||
(section_marker) @markup.heading.marker | ||
(section_content) @markup.heading.3 | ||
(section_marker) @markup.heading.marker) | ||
(#eq? @markup.heading.marker "====")) | ||
|
||
(macro (tag) @function.macro) | ||
(tag) @keyword | ||
(macro_escape) @constant.character.escape | ||
(inline_quote) @markup.raw.inline | ||
(email_address) @markup.link.url | ||
|
||
(em_xhtml_tag | ||
(open_xhtml_tag) @tag | ||
(xhtml_tag_content) @markup.italic | ||
(close_xhtml_tag) @tag) | ||
|
||
(strong_xhtml_tag | ||
(open_xhtml_tag) @tag | ||
(xhtml_tag_content) @markup.bold | ||
(close_xhtml_tag) @tag) | ||
|
||
(module) @namespace | ||
(function) @function | ||
(type) @type | ||
|
||
; could be @constant.numeric.integer but this looks similar to a capture | ||
(arity) @operator | ||
|
||
[":" "/"] @operator | ||
["(" ")"] @punctuation.delimiter | ||
["{" "}"] @function.macro | ||
|
||
[ | ||
(quote_marker) | ||
(language_identifier) | ||
(quote_content) | ||
] @markup.raw.block |
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,20 @@ | ||
((xhtml_tag) @injection.content | ||
(#set! injection.combined) | ||
(#set! injection.include-children) | ||
(#set! injection.language "html")) | ||
|
||
((block_quote | ||
!language | ||
(quote_content) @injection.content) | ||
(#set! injection.language "erlang")) | ||
|
||
(block_quote | ||
language: (language_identifier) @injection.language | ||
(quote_content) @injection.content) | ||
|
||
((macro | ||
(tag) @_tag | ||
(argument) @injection.content) | ||
(#eq? @_tag "@type") | ||
(#set injection.language "erlang") | ||
(#set injection.include-children)) |
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) @injection.content | ||
(#set! injection.language "comment")) | ||
((comment_content) @injection.content | ||
(#set! injection.language "edoc")) |
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 |
---|---|---|
|
@@ -45,5 +45,5 @@ | |
[ | ||
(backslash_escape) | ||
(hard_line_break) | ||
] @string.character.escape | ||
] @constant.character.escape | ||
|
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
] @punctuation.bracket | ||
|
||
":" @punctuation.delimiter | ||
"!" @operator | ||
|
||
[ | ||
(one_or_more) | ||
|