@spader/spall-tui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/App.js +3636 -0
  2. package/dist/App.js.map +39 -0
  3. package/dist/bash-nbhfht5r.scm +56 -0
  4. package/dist/c-4zy7d3fw.scm +81 -0
  5. package/dist/c_sharp-tb7n62t2.scm +212 -0
  6. package/dist/cpp-stxr9ffp.scm +77 -0
  7. package/dist/css-b1p1h6ys.scm +76 -0
  8. package/dist/dart-t89b32ej.scm +13 -0
  9. package/dist/elisp-ax9wx1b9.scm +72 -0
  10. package/dist/elixir-77300bss.scm +223 -0
  11. package/dist/elm-k2q5knqb.scm +76 -0
  12. package/dist/embedded_template-k7ypjkba.scm +12 -0
  13. package/dist/go-9wx8m64k.scm +123 -0
  14. package/dist/html-g95aq3vw.scm +13 -0
  15. package/dist/index.js +3635 -0
  16. package/dist/index.js.map +39 -0
  17. package/dist/java-wasz6t7a.scm +149 -0
  18. package/dist/javascript-cswtymww.scm +204 -0
  19. package/dist/json-pf4aw8w1.scm +16 -0
  20. package/dist/kotlin-m6cj2y7m.scm +380 -0
  21. package/dist/lib/git.js +117 -0
  22. package/dist/lib/git.js.map +10 -0
  23. package/dist/lua-7h6jk3pd.scm +204 -0
  24. package/dist/objc-6yjdwy1z.scm +216 -0
  25. package/dist/ocaml-jfj520qk.scm +148 -0
  26. package/dist/parsers/index.d.ts +8 -0
  27. package/dist/parsers/index.d.ts.map +1 -0
  28. package/dist/php-bds7v5h1.scm +203 -0
  29. package/dist/python-k2cbtg72.scm +137 -0
  30. package/dist/ql-qs2vxbeq.scm +154 -0
  31. package/dist/ruby-3ybh5bp2.scm +154 -0
  32. package/dist/rust-edtnatpk.scm +161 -0
  33. package/dist/scala-91f2sb1z.scm +260 -0
  34. package/dist/src/App.d.ts +6 -0
  35. package/dist/src/App.d.ts.map +1 -0
  36. package/dist/src/Review.d.ts +6 -0
  37. package/dist/src/Review.d.ts.map +1 -0
  38. package/dist/src/components/CommandPalette.d.ts +2 -0
  39. package/dist/src/components/CommandPalette.d.ts.map +1 -0
  40. package/dist/src/components/DiffPanel.d.ts +16 -0
  41. package/dist/src/components/DiffPanel.d.ts.map +1 -0
  42. package/dist/src/components/EditorPanel.d.ts +9 -0
  43. package/dist/src/components/EditorPanel.d.ts.map +1 -0
  44. package/dist/src/components/ErrorFallback.d.ts +6 -0
  45. package/dist/src/components/ErrorFallback.d.ts.map +1 -0
  46. package/dist/src/components/HalfLineShadow.d.ts +18 -0
  47. package/dist/src/components/HalfLineShadow.d.ts.map +1 -0
  48. package/dist/src/components/index.d.ts +7 -0
  49. package/dist/src/components/index.d.ts.map +1 -0
  50. package/dist/src/components/sidebar/CommentList.d.ts +10 -0
  51. package/dist/src/components/sidebar/CommentList.d.ts.map +1 -0
  52. package/dist/src/components/sidebar/FileList.d.ts +13 -0
  53. package/dist/src/components/sidebar/FileList.d.ts.map +1 -0
  54. package/dist/src/components/sidebar/PatchList.d.ts +14 -0
  55. package/dist/src/components/sidebar/PatchList.d.ts.map +1 -0
  56. package/dist/src/components/sidebar/ProjectStatus.d.ts +7 -0
  57. package/dist/src/components/sidebar/ProjectStatus.d.ts.map +1 -0
  58. package/dist/src/components/sidebar/Section.d.ts +12 -0
  59. package/dist/src/components/sidebar/Section.d.ts.map +1 -0
  60. package/dist/src/components/sidebar/ServerStatus.d.ts +2 -0
  61. package/dist/src/components/sidebar/ServerStatus.d.ts.map +1 -0
  62. package/dist/src/components/sidebar/index.d.ts +7 -0
  63. package/dist/src/components/sidebar/index.d.ts.map +1 -0
  64. package/dist/src/context/command.d.ts +10 -0
  65. package/dist/src/context/command.d.ts.map +1 -0
  66. package/dist/src/context/dialog.d.ts +11 -0
  67. package/dist/src/context/dialog.d.ts.map +1 -0
  68. package/dist/src/context/exit.d.ts +10 -0
  69. package/dist/src/context/exit.d.ts.map +1 -0
  70. package/dist/src/context/review.d.ts +47 -0
  71. package/dist/src/context/review.d.ts.map +1 -0
  72. package/dist/src/context/server.d.ts +10 -0
  73. package/dist/src/context/server.d.ts.map +1 -0
  74. package/dist/src/context/sidebar.d.ts +13 -0
  75. package/dist/src/context/sidebar.d.ts.map +1 -0
  76. package/dist/src/context/theme.d.ts +47 -0
  77. package/dist/src/context/theme.d.ts.map +1 -0
  78. package/dist/src/index.d.ts +3 -0
  79. package/dist/src/index.d.ts.map +1 -0
  80. package/dist/src/lib/diff.d.ts +24 -0
  81. package/dist/src/lib/diff.d.ts.map +1 -0
  82. package/dist/src/lib/git.d.ts +15 -0
  83. package/dist/src/lib/git.d.ts.map +1 -0
  84. package/dist/src/lib/keybind.d.ts +23 -0
  85. package/dist/src/lib/keybind.d.ts.map +1 -0
  86. package/dist/src/lib/tree.d.ts +39 -0
  87. package/dist/src/lib/tree.d.ts.map +1 -0
  88. package/dist/src/store/comment.d.ts +20 -0
  89. package/dist/src/store/comment.d.ts.map +1 -0
  90. package/dist/src/store/db.d.ts +6 -0
  91. package/dist/src/store/db.d.ts.map +1 -0
  92. package/dist/src/store/index.d.ts +7 -0
  93. package/dist/src/store/index.d.ts.map +1 -0
  94. package/dist/src/store/patch.d.ts +22 -0
  95. package/dist/src/store/patch.d.ts.map +1 -0
  96. package/dist/src/store/repo.d.ts +8 -0
  97. package/dist/src/store/repo.d.ts.map +1 -0
  98. package/dist/src/store/review.d.ts +18 -0
  99. package/dist/src/store/review.d.ts.map +1 -0
  100. package/dist/store/index.js +303 -0
  101. package/dist/store/index.js.map +14 -0
  102. package/dist/swift-a4tt704b.scm +336 -0
  103. package/dist/toml-hcqfz0bg.scm +53 -0
  104. package/dist/tsx-c3k3mmc9.scm +239 -0
  105. package/dist/typescript-hz4pg6ze.scm +239 -0
  106. package/dist/vue-xbeea1aj.scm +9 -0
  107. package/dist/yaml-mbfb25g0.scm +79 -0
  108. package/dist/zig-ds3q8m26.scm +283 -0
  109. package/package.json +74 -0
@@ -0,0 +1,154 @@
1
+ [
2
+ "as"
3
+ "by"
4
+ "extends"
5
+ "from"
6
+ "implies"
7
+ "in"
8
+ "module"
9
+ "order"
10
+ "select"
11
+ "where"
12
+ (predicate)
13
+ (result)
14
+ (specialId)
15
+ ] @keyword
16
+
17
+ [
18
+ "newtype"
19
+ "class"
20
+ ] @keyword.type
21
+
22
+ [
23
+ "and"
24
+ "not"
25
+ "or"
26
+ ] @keyword.operator
27
+
28
+ [
29
+ "avg"
30
+ "any"
31
+ "count"
32
+ "concat"
33
+ "exists"
34
+ "max"
35
+ "min"
36
+ "instanceof"
37
+ "rank"
38
+ "sum"
39
+ "strictconcat"
40
+ "strictcount"
41
+ "strictsum"
42
+ ] @function.builtin
43
+
44
+ "import" @keyword.import
45
+
46
+ [
47
+ "if"
48
+ "then"
49
+ "else"
50
+ ] @keyword.conditional
51
+
52
+ [
53
+ "forall"
54
+ "forex"
55
+ ] @keyword.repeat
56
+
57
+ [
58
+ "asc"
59
+ "desc"
60
+ ] @keyword.modifier
61
+
62
+ [
63
+ (true)
64
+ (false)
65
+ ] @boolean
66
+
67
+ [
68
+ (this)
69
+ (super)
70
+ ] @variable.builtin
71
+
72
+ [
73
+ "boolean"
74
+ "float"
75
+ "int"
76
+ "date"
77
+ "string"
78
+ ] @type.builtin
79
+
80
+ (annotName) @attribute
81
+
82
+ [
83
+ "<"
84
+ "<="
85
+ "="
86
+ ">"
87
+ ">="
88
+ "-"
89
+ "!="
90
+ "/"
91
+ "*"
92
+ "%"
93
+ "+"
94
+ "::"
95
+ ] @operator
96
+
97
+ [
98
+ "("
99
+ ")"
100
+ "{"
101
+ "}"
102
+ "["
103
+ "]"
104
+ ] @punctuation.bracket
105
+
106
+ [
107
+ ","
108
+ "|"
109
+ ] @punctuation.delimiter
110
+
111
+ (moduleExpr
112
+ (simpleId) @module)
113
+
114
+ (module
115
+ name: (moduleName) @module)
116
+
117
+ (dataclass
118
+ name: (className) @type)
119
+
120
+ (typeExpr
121
+ name: (className) @type)
122
+
123
+ (datatype
124
+ name: (className) @type.definition)
125
+
126
+ (importModuleExpr
127
+ qualName: (simpleId) @variable)
128
+
129
+ (varName) @variable
130
+
131
+ (integer) @number
132
+
133
+ (float) @number.float
134
+
135
+ (string) @string
136
+
137
+ (aritylessPredicateExpr
138
+ (literalId) @function)
139
+
140
+ (memberPredicate
141
+ name: (predicateName) @function)
142
+
143
+ (classlessPredicate
144
+ name: (predicateName) @function)
145
+
146
+ (charpred
147
+ (className) @function)
148
+
149
+ [
150
+ (line_comment)
151
+ (block_comment)
152
+ ] @comment @spell
153
+
154
+ (qldoc) @comment.documentation
@@ -0,0 +1,154 @@
1
+ (identifier) @variable
2
+
3
+ ((identifier) @function.method
4
+ (#is-not? local))
5
+
6
+ [
7
+ "alias"
8
+ "and"
9
+ "begin"
10
+ "break"
11
+ "case"
12
+ "class"
13
+ "def"
14
+ "do"
15
+ "else"
16
+ "elsif"
17
+ "end"
18
+ "ensure"
19
+ "for"
20
+ "if"
21
+ "in"
22
+ "module"
23
+ "next"
24
+ "or"
25
+ "rescue"
26
+ "retry"
27
+ "return"
28
+ "then"
29
+ "unless"
30
+ "until"
31
+ "when"
32
+ "while"
33
+ "yield"
34
+ ] @keyword
35
+
36
+ ((identifier) @keyword
37
+ (#match? @keyword "^(private|protected|public)$"))
38
+
39
+ (constant) @constructor
40
+
41
+ ; Function calls
42
+
43
+ "defined?" @function.method.builtin
44
+
45
+ (call
46
+ method: [(identifier) (constant)] @function.method)
47
+
48
+ ((identifier) @function.method.builtin
49
+ (#eq? @function.method.builtin "require"))
50
+
51
+ ; Function definitions
52
+
53
+ (alias (identifier) @function.method)
54
+ (setter (identifier) @function.method)
55
+ (method name: [(identifier) (constant)] @function.method)
56
+ (singleton_method name: [(identifier) (constant)] @function.method)
57
+
58
+ ; Identifiers
59
+
60
+ [
61
+ (class_variable)
62
+ (instance_variable)
63
+ ] @property
64
+
65
+ ((identifier) @constant.builtin
66
+ (#match? @constant.builtin "^__(FILE|LINE|ENCODING)__$"))
67
+
68
+ (file) @constant.builtin
69
+ (line) @constant.builtin
70
+ (encoding) @constant.builtin
71
+
72
+ (hash_splat_nil
73
+ "**" @operator) @constant.builtin
74
+
75
+ ((constant) @constant
76
+ (#match? @constant "^[A-Z\\d_]+$"))
77
+
78
+ [
79
+ (self)
80
+ (super)
81
+ ] @variable.builtin
82
+
83
+ (block_parameter (identifier) @variable.parameter)
84
+ (block_parameters (identifier) @variable.parameter)
85
+ (destructured_parameter (identifier) @variable.parameter)
86
+ (hash_splat_parameter (identifier) @variable.parameter)
87
+ (lambda_parameters (identifier) @variable.parameter)
88
+ (method_parameters (identifier) @variable.parameter)
89
+ (splat_parameter (identifier) @variable.parameter)
90
+
91
+ (keyword_parameter name: (identifier) @variable.parameter)
92
+ (optional_parameter name: (identifier) @variable.parameter)
93
+
94
+ ; Literals
95
+
96
+ [
97
+ (string)
98
+ (bare_string)
99
+ (subshell)
100
+ (heredoc_body)
101
+ (heredoc_beginning)
102
+ ] @string
103
+
104
+ [
105
+ (simple_symbol)
106
+ (delimited_symbol)
107
+ (hash_key_symbol)
108
+ (bare_symbol)
109
+ ] @string.special.symbol
110
+
111
+ (regex) @string.special.regex
112
+ (escape_sequence) @escape
113
+
114
+ [
115
+ (integer)
116
+ (float)
117
+ ] @number
118
+
119
+ [
120
+ (nil)
121
+ (true)
122
+ (false)
123
+ ] @constant.builtin
124
+
125
+ (interpolation
126
+ "#{" @punctuation.special
127
+ "}" @punctuation.special) @embedded
128
+
129
+ (comment) @comment
130
+
131
+ ; Operators
132
+
133
+ [
134
+ "="
135
+ "=>"
136
+ "->"
137
+ ] @operator
138
+
139
+ [
140
+ ","
141
+ ";"
142
+ "."
143
+ ] @punctuation.delimiter
144
+
145
+ [
146
+ "("
147
+ ")"
148
+ "["
149
+ "]"
150
+ "{"
151
+ "}"
152
+ "%w("
153
+ "%i("
154
+ ] @punctuation.bracket
@@ -0,0 +1,161 @@
1
+ ; Identifiers
2
+
3
+ (type_identifier) @type
4
+ (primitive_type) @type.builtin
5
+ (field_identifier) @property
6
+
7
+ ; Identifier conventions
8
+
9
+ ; Assume all-caps names are constants
10
+ ((identifier) @constant
11
+ (#match? @constant "^[A-Z][A-Z\\d_]+$'"))
12
+
13
+ ; Assume uppercase names are enum constructors
14
+ ((identifier) @constructor
15
+ (#match? @constructor "^[A-Z]"))
16
+
17
+ ; Assume that uppercase names in paths are types
18
+ ((scoped_identifier
19
+ path: (identifier) @type)
20
+ (#match? @type "^[A-Z]"))
21
+ ((scoped_identifier
22
+ path: (scoped_identifier
23
+ name: (identifier) @type))
24
+ (#match? @type "^[A-Z]"))
25
+ ((scoped_type_identifier
26
+ path: (identifier) @type)
27
+ (#match? @type "^[A-Z]"))
28
+ ((scoped_type_identifier
29
+ path: (scoped_identifier
30
+ name: (identifier) @type))
31
+ (#match? @type "^[A-Z]"))
32
+
33
+ ; Assume all qualified names in struct patterns are enum constructors. (They're
34
+ ; either that, or struct names; highlighting both as constructors seems to be
35
+ ; the less glaring choice of error, visually.)
36
+ (struct_pattern
37
+ type: (scoped_type_identifier
38
+ name: (type_identifier) @constructor))
39
+
40
+ ; Function calls
41
+
42
+ (call_expression
43
+ function: (identifier) @function)
44
+ (call_expression
45
+ function: (field_expression
46
+ field: (field_identifier) @function.method))
47
+ (call_expression
48
+ function: (scoped_identifier
49
+ "::"
50
+ name: (identifier) @function))
51
+
52
+ (generic_function
53
+ function: (identifier) @function)
54
+ (generic_function
55
+ function: (scoped_identifier
56
+ name: (identifier) @function))
57
+ (generic_function
58
+ function: (field_expression
59
+ field: (field_identifier) @function.method))
60
+
61
+ (macro_invocation
62
+ macro: (identifier) @function.macro
63
+ "!" @function.macro)
64
+
65
+ ; Function definitions
66
+
67
+ (function_item (identifier) @function)
68
+ (function_signature_item (identifier) @function)
69
+
70
+ (line_comment) @comment
71
+ (block_comment) @comment
72
+
73
+ (line_comment (doc_comment)) @comment.documentation
74
+ (block_comment (doc_comment)) @comment.documentation
75
+
76
+ "(" @punctuation.bracket
77
+ ")" @punctuation.bracket
78
+ "[" @punctuation.bracket
79
+ "]" @punctuation.bracket
80
+ "{" @punctuation.bracket
81
+ "}" @punctuation.bracket
82
+
83
+ (type_arguments
84
+ "<" @punctuation.bracket
85
+ ">" @punctuation.bracket)
86
+ (type_parameters
87
+ "<" @punctuation.bracket
88
+ ">" @punctuation.bracket)
89
+
90
+ "::" @punctuation.delimiter
91
+ ":" @punctuation.delimiter
92
+ "." @punctuation.delimiter
93
+ "," @punctuation.delimiter
94
+ ";" @punctuation.delimiter
95
+
96
+ (parameter (identifier) @variable.parameter)
97
+
98
+ (lifetime (identifier) @label)
99
+
100
+ "as" @keyword
101
+ "async" @keyword
102
+ "await" @keyword
103
+ "break" @keyword
104
+ "const" @keyword
105
+ "continue" @keyword
106
+ "default" @keyword
107
+ "dyn" @keyword
108
+ "else" @keyword
109
+ "enum" @keyword
110
+ "extern" @keyword
111
+ "fn" @keyword
112
+ "for" @keyword
113
+ "gen" @keyword
114
+ "if" @keyword
115
+ "impl" @keyword
116
+ "in" @keyword
117
+ "let" @keyword
118
+ "loop" @keyword
119
+ "macro_rules!" @keyword
120
+ "match" @keyword
121
+ "mod" @keyword
122
+ "move" @keyword
123
+ "pub" @keyword
124
+ "raw" @keyword
125
+ "ref" @keyword
126
+ "return" @keyword
127
+ "static" @keyword
128
+ "struct" @keyword
129
+ "trait" @keyword
130
+ "type" @keyword
131
+ "union" @keyword
132
+ "unsafe" @keyword
133
+ "use" @keyword
134
+ "where" @keyword
135
+ "while" @keyword
136
+ "yield" @keyword
137
+ (crate) @keyword
138
+ (mutable_specifier) @keyword
139
+ (use_list (self) @keyword)
140
+ (scoped_use_list (self) @keyword)
141
+ (scoped_identifier (self) @keyword)
142
+ (super) @keyword
143
+
144
+ (self) @variable.builtin
145
+
146
+ (char_literal) @string
147
+ (string_literal) @string
148
+ (raw_string_literal) @string
149
+
150
+ (boolean_literal) @constant.builtin
151
+ (integer_literal) @constant.builtin
152
+ (float_literal) @constant.builtin
153
+
154
+ (escape_sequence) @escape
155
+
156
+ (attribute_item) @attribute
157
+ (inner_attribute_item) @attribute
158
+
159
+ "*" @operator
160
+ "&" @operator
161
+ "'" @operator
@@ -0,0 +1,260 @@
1
+ ; CREDITS @stumash (stuart.mashaal@gmail.com)
2
+
3
+ (field_expression field: (identifier) @property)
4
+ (field_expression value: (identifier) @type
5
+ (#match? @type "^[A-Z]"))
6
+
7
+ (type_identifier) @type
8
+
9
+ (class_definition
10
+ name: (identifier) @type)
11
+
12
+ (enum_definition
13
+ name: (identifier) @type)
14
+
15
+ (object_definition
16
+ name: (identifier) @type)
17
+
18
+ (trait_definition
19
+ name: (identifier) @type)
20
+
21
+ (full_enum_case
22
+ name: (identifier) @type)
23
+
24
+ (simple_enum_case
25
+ name: (identifier) @type)
26
+
27
+ ;; variables
28
+
29
+ (class_parameter
30
+ name: (identifier) @parameter)
31
+
32
+ (self_type (identifier) @parameter)
33
+
34
+ (interpolation (identifier) @none)
35
+ (interpolation (block) @none)
36
+
37
+ ;; types
38
+
39
+ (type_definition
40
+ name: (type_identifier) @type.definition)
41
+
42
+ ;; val/var definitions/declarations
43
+
44
+ (val_definition
45
+ pattern: (identifier) @variable)
46
+
47
+ (var_definition
48
+ pattern: (identifier) @variable)
49
+
50
+ (val_declaration
51
+ name: (identifier) @variable)
52
+
53
+ (var_declaration
54
+ name: (identifier) @variable)
55
+
56
+ ; imports/exports
57
+
58
+ (import_declaration
59
+ path: (identifier) @namespace)
60
+ ((stable_identifier (identifier) @namespace))
61
+
62
+ ((import_declaration
63
+ path: (identifier) @type) (#match? @type "^[A-Z]"))
64
+ ((stable_identifier (identifier) @type) (#match? @type "^[A-Z]"))
65
+
66
+ (export_declaration
67
+ path: (identifier) @namespace)
68
+ ((stable_identifier (identifier) @namespace))
69
+
70
+ ((export_declaration
71
+ path: (identifier) @type) (#match? @type "^[A-Z]"))
72
+ ((stable_identifier (identifier) @type) (#match? @type "^[A-Z]"))
73
+
74
+ ((namespace_selectors (identifier) @type) (#match? @type "^[A-Z]"))
75
+
76
+ ; method invocation
77
+
78
+ (call_expression
79
+ function: (identifier) @function.call)
80
+
81
+ (call_expression
82
+ function: (operator_identifier) @function.call)
83
+
84
+ (call_expression
85
+ function: (field_expression
86
+ field: (identifier) @method.call))
87
+
88
+ ((call_expression
89
+ function: (identifier) @constructor)
90
+ (#match? @constructor "^[A-Z]"))
91
+
92
+ (generic_function
93
+ function: (identifier) @function.call)
94
+
95
+ (interpolated_string_expression
96
+ interpolator: (identifier) @function.call)
97
+
98
+ ; function definitions
99
+
100
+ (function_definition
101
+ name: (identifier) @function)
102
+
103
+ (parameter
104
+ name: (identifier) @parameter)
105
+
106
+ (binding
107
+ name: (identifier) @parameter)
108
+
109
+ ; method definition
110
+
111
+ (function_declaration
112
+ name: (identifier) @method)
113
+
114
+ (function_definition
115
+ name: (identifier) @method)
116
+
117
+ ; expressions
118
+
119
+ (infix_expression operator: (identifier) @operator)
120
+ (infix_expression operator: (operator_identifier) @operator)
121
+ (infix_type operator: (operator_identifier) @operator)
122
+ (infix_type operator: (operator_identifier) @operator)
123
+
124
+ ; literals
125
+
126
+ (boolean_literal) @boolean
127
+ (integer_literal) @number
128
+ (floating_point_literal) @float
129
+
130
+ [
131
+ (string)
132
+ (character_literal)
133
+ (interpolated_string_expression)
134
+ ] @string
135
+
136
+ (interpolation "$" @punctuation.special)
137
+
138
+ ;; keywords
139
+
140
+ (opaque_modifier) @type.qualifier
141
+ (infix_modifier) @keyword
142
+ (transparent_modifier) @type.qualifier
143
+ (open_modifier) @type.qualifier
144
+
145
+ [
146
+ "case"
147
+ "class"
148
+ "enum"
149
+ "extends"
150
+ "derives"
151
+ "finally"
152
+ ;; `forSome` existential types not implemented yet
153
+ ;; `macro` not implemented yet
154
+ "object"
155
+ "override"
156
+ "package"
157
+ "trait"
158
+ "type"
159
+ "val"
160
+ "var"
161
+ "with"
162
+ "given"
163
+ "using"
164
+ "end"
165
+ "implicit"
166
+ "extension"
167
+ "with"
168
+ ] @keyword
169
+
170
+ [
171
+ "abstract"
172
+ "final"
173
+ "lazy"
174
+ "sealed"
175
+ "private"
176
+ "protected"
177
+ ] @type.qualifier
178
+
179
+ (inline_modifier) @storageclass
180
+
181
+ (null_literal) @constant.builtin
182
+
183
+ (wildcard) @parameter
184
+
185
+ (annotation) @attribute
186
+
187
+ ;; special keywords
188
+
189
+ "new" @keyword.operator
190
+
191
+ [
192
+ "else"
193
+ "if"
194
+ "match"
195
+ "then"
196
+ ] @conditional
197
+
198
+ [
199
+ "("
200
+ ")"
201
+ "["
202
+ "]"
203
+ "{"
204
+ "}"
205
+ ] @punctuation.bracket
206
+
207
+ [
208
+ "."
209
+ ","
210
+ ] @punctuation.delimiter
211
+
212
+ [
213
+ "do"
214
+ "for"
215
+ "while"
216
+ "yield"
217
+ ] @repeat
218
+
219
+ "def" @keyword.function
220
+
221
+ [
222
+ "=>"
223
+ "<-"
224
+ "@"
225
+ ] @operator
226
+
227
+ ["import" "export"] @include
228
+
229
+ [
230
+ "try"
231
+ "catch"
232
+ "throw"
233
+ ] @exception
234
+
235
+ "return" @keyword.return
236
+
237
+ (comment) @spell @comment
238
+ (block_comment) @spell @comment
239
+
240
+ ;; `case` is a conditional keyword in case_block
241
+
242
+ (case_block
243
+ (case_clause ("case") @conditional))
244
+ (indented_cases
245
+ (case_clause ("case") @conditional))
246
+
247
+ (operator_identifier) @operator
248
+
249
+ ((identifier) @type (#match? @type "^[A-Z]"))
250
+ ((identifier) @variable.builtin
251
+ (#match? @variable.builtin "^this$"))
252
+
253
+ (
254
+ (identifier) @function.builtin
255
+ (#match? @function.builtin "^super$")
256
+ )
257
+
258
+ ;; Scala CLI using directives
259
+ (using_directive_key) @parameter
260
+ (using_directive_value) @string
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bun
2
+ export interface TuiOptions {
3
+ repoPath?: string;
4
+ }
5
+ export declare function tui(options?: TuiOptions): Promise<void>;
6
+ //# sourceMappingURL=App.d.ts.map