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:
joker1007 2025-11-14 02:33:39 +09:00
parent 407b7ac662
commit 28de3ec2ad
No known key found for this signature in database
GPG key ID: 69BAF8CC17ECB7B3
2 changed files with 10 additions and 1 deletions

View file

@ -1860,7 +1860,7 @@ return {
},
rbs = {
install_info = {
revision = 'eb08fb0e8ea55727539e2fd77ffb93ada3a73f01',
revision = '7c7420367562d9f69c7944bf3ca4c93fb9774750',
url = 'https://github.com/joker1007/tree-sitter-rbs',
},
maintainers = { '@joker1007' },

View file

@ -163,3 +163,12 @@
; RBS Inline prefix (keep comment color)
(inline_prefix) @comment
; RBS Inline syntax
(inline_class_annotation) @keyword
(inline_doc
(identifier) @variable.parameter)
(inline_doc
(inline_doc_comment) @comment)