mirror of
https://github.com/helix-editor/helix.git
synced 2024-08-17 06:40:47 +03:00
Use tree-sitter-ruby for crystal (#5205)
This commit is contained in:
parent
ec639387e8
commit
b368df5785
@ -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
|
||||
|
1
runtime/queries/crystal/injections.scm
Normal file
1
runtime/queries/crystal/injections.scm
Normal file
@ -0,0 +1 @@
|
||||
; inherits: ruby
|
1
runtime/queries/crystal/locals.scm
Normal file
1
runtime/queries/crystal/locals.scm
Normal file
@ -0,0 +1 @@
|
||||
; inherits: ruby
|
1
runtime/queries/crystal/textobjects.scm
Normal file
1
runtime/queries/crystal/textobjects.scm
Normal file
@ -0,0 +1 @@
|
||||
; inherits: ruby
|
Loading…
Reference in New Issue
Block a user