Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
display_name: "Scala"
|
||||
indent_unit:
|
||||
space: 2
|
||||
comment_prefix: "//"
|
||||
brackets:
|
||||
- start: "{"
|
||||
end: "}"
|
||||
- start: "("
|
||||
end: ")"
|
||||
- start: "["
|
||||
end: "]"
|
||||
- start: "\""
|
||||
end: "\""
|
||||
- start: "'"
|
||||
end: "'"
|
||||
- start: "`"
|
||||
end: "`"
|
||||
@@ -0,0 +1,32 @@
|
||||
(comment) @comment
|
||||
(block_comment) @comment
|
||||
|
||||
; Class declarations
|
||||
(class_definition name: (identifier) @definition.class)
|
||||
|
||||
; Object declarations
|
||||
(object_definition name: (identifier) @definition.class)
|
||||
|
||||
; Trait declarations
|
||||
(trait_definition name: (identifier) @definition.class)
|
||||
|
||||
; Enum declarations
|
||||
(enum_definition name: (identifier) @definition.class)
|
||||
|
||||
; Function/method declarations
|
||||
(function_declaration name: (identifier) @definition)
|
||||
(function_definition name: (identifier) @definition)
|
||||
|
||||
; Variable definitions
|
||||
(val_definition pattern: (identifier) @definition)
|
||||
(var_definition pattern: (identifier) @definition)
|
||||
(val_declaration name: (identifier) @definition)
|
||||
(var_declaration name: (identifier) @definition)
|
||||
|
||||
; Parameters
|
||||
(parameter name: (identifier) @definition)
|
||||
(binding name: (identifier) @definition)
|
||||
(class_parameter name: (identifier) @definition)
|
||||
|
||||
; Type definitions
|
||||
(type_definition name: (type_identifier) @definition.type)
|
||||
@@ -0,0 +1,30 @@
|
||||
; These indent queries adhere to nvim-tree-sytter syntax.
|
||||
; See `nvim-tree-sitter-indentation-mod` vim help page.
|
||||
|
||||
[
|
||||
(template_body)
|
||||
(block)
|
||||
(parameters)
|
||||
(arguments)
|
||||
(match_expression)
|
||||
(splice_expression)
|
||||
(import_declaration)
|
||||
(function_definition)
|
||||
(ERROR ":")
|
||||
(ERROR "=")
|
||||
("match")
|
||||
(":")
|
||||
("=")
|
||||
] @indent.begin
|
||||
|
||||
(arguments ")" @indent.end)
|
||||
|
||||
"}" @indent.end
|
||||
|
||||
"end" @indent.end
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
"}"
|
||||
] @indent.branch
|
||||
Reference in New Issue
Block a user