Use tree-sitter-ruby for crystal (#5205)

pull/3/head
Michael Davis 1 year ago committed by GitHub
parent ec639387e8
commit b368df5785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,7 +16,7 @@
| common-lisp | ✓ | | | `cl-lsp` |
| cpon | ✓ | | ✓ | |
| cpp | ✓ | ✓ | ✓ | `clangd` |
| crystal | ✓ | | | |
| crystal | ✓ | | | |
| css | ✓ | | | `vscode-css-language-server` |
| cue | ✓ | | | `cuelsp` |
| d | ✓ | ✓ | ✓ | `serve-d` |

@ -230,10 +230,7 @@ file-types = ["cr"]
roots = ["shard.yml", "shard.lock"]
comment-token = "#"
indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "crystal"
source = { git = "https://github.com/will/tree-sitter-crystal", rev = "15597b307b18028b04d288561f9c29794621562b" }
grammar = "ruby"
[[language]]
name = "c-sharp"

@ -1,66 +1 @@
[
"class"
"struct"
"module"
"def"
"alias"
"do"
"end"
"require"
"include"
"extend"
] @keyword
[
"[" "]"
"(" ")"
"{" "}"
] @punctuation.bracket
(operator) @operator
(comment) @comment
; literals
(nil) @constant.builtin
(bool) @constant.builtin.boolean
(integer) @constant.numeric.integer
(float) @constant.numeric.float
[
(string)
(char)
(commandLiteral)
] @string
(symbol) @string.special.symbol
(regex) @string.special.regex
; variables
(local_variable) @variable
[
(instance_variable)
(class_variable)
] @variable.other.member
(constant) @constant
; type defintitions
(type_identifier) @constructor
; method definition/call
(identifier) @function.method
; types
(generic_type) @type
(union_type) @type
(type_identifier) @type
; inherits: ruby

Loading…
Cancel
Save