mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
feat(rbs): support inline doc style syntax
ref. https://github.com/soutaro/rbs-inline/wiki/Syntax-guide#doc-style-syntax
This commit is contained in:
parent
407b7ac662
commit
28de3ec2ad
2 changed files with 10 additions and 1 deletions
|
|
@ -1860,7 +1860,7 @@ return {
|
||||||
},
|
},
|
||||||
rbs = {
|
rbs = {
|
||||||
install_info = {
|
install_info = {
|
||||||
revision = 'eb08fb0e8ea55727539e2fd77ffb93ada3a73f01',
|
revision = '7c7420367562d9f69c7944bf3ca4c93fb9774750',
|
||||||
url = 'https://github.com/joker1007/tree-sitter-rbs',
|
url = 'https://github.com/joker1007/tree-sitter-rbs',
|
||||||
},
|
},
|
||||||
maintainers = { '@joker1007' },
|
maintainers = { '@joker1007' },
|
||||||
|
|
|
||||||
|
|
@ -163,3 +163,12 @@
|
||||||
|
|
||||||
; RBS Inline prefix (keep comment color)
|
; RBS Inline prefix (keep comment color)
|
||||||
(inline_prefix) @comment
|
(inline_prefix) @comment
|
||||||
|
|
||||||
|
; RBS Inline syntax
|
||||||
|
(inline_class_annotation) @keyword
|
||||||
|
|
||||||
|
(inline_doc
|
||||||
|
(identifier) @variable.parameter)
|
||||||
|
|
||||||
|
(inline_doc
|
||||||
|
(inline_doc_comment) @comment)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue