Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Starlark configuration for Warp
|
||||
# Starlark is used by Bazel and has Python-like syntax
|
||||
display_name: "Bazel (Starlark)"
|
||||
indent_unit:
|
||||
space: 4
|
||||
comment_prefix: "#"
|
||||
brackets:
|
||||
- start: "{"
|
||||
end: "}"
|
||||
- start: "("
|
||||
end: ")"
|
||||
- start: "["
|
||||
end: "]"
|
||||
@@ -0,0 +1,9 @@
|
||||
; Starlark symbol identification
|
||||
(comment) @comment
|
||||
|
||||
; Function definitions
|
||||
(function_definition name: (identifier) @definition.def)
|
||||
|
||||
; Variables assigned at module level (like rules, constants)
|
||||
(assignment
|
||||
left: (identifier) @definition.var)
|
||||
@@ -0,0 +1,24 @@
|
||||
; Starlark indentation rules
|
||||
[
|
||||
(list)
|
||||
(dictionary)
|
||||
|
||||
(if_statement)
|
||||
(for_statement)
|
||||
|
||||
(parenthesized_expression)
|
||||
(list_comprehension)
|
||||
(dictionary_comprehension)
|
||||
|
||||
(argument_list)
|
||||
(parameters)
|
||||
(binary_operator)
|
||||
|
||||
(function_definition)
|
||||
] @indent
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
"}"
|
||||
] @outdent
|
||||
Reference in New Issue
Block a user