@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,223 @@
1
+ ; Punctuation
2
+
3
+ [
4
+ "%"
5
+ ] @punctuation
6
+
7
+ [
8
+ ","
9
+ ";"
10
+ ] @punctuation.delimiter
11
+
12
+ [
13
+ "("
14
+ ")"
15
+ "["
16
+ "]"
17
+ "{"
18
+ "}"
19
+ "<<"
20
+ ">>"
21
+ ] @punctuation.bracket
22
+
23
+ ; Literals
24
+
25
+ [
26
+ (boolean)
27
+ (nil)
28
+ ] @constant
29
+
30
+ [
31
+ (integer)
32
+ (float)
33
+ ] @number
34
+
35
+ (char) @constant
36
+
37
+ ; Identifiers
38
+
39
+ ; * regular
40
+ (identifier) @variable
41
+
42
+ ; * unused
43
+ (
44
+ (identifier) @comment.unused
45
+ (#match? @comment.unused "^_")
46
+ )
47
+
48
+ ; * special
49
+ (
50
+ (identifier) @constant.builtin
51
+ (#any-of? @constant.builtin "__MODULE__" "__DIR__" "__ENV__" "__CALLER__" "__STACKTRACE__")
52
+ )
53
+
54
+ ; Comment
55
+
56
+ (comment) @comment
57
+
58
+ ; Quoted content
59
+
60
+ (interpolation "#{" @punctuation.special "}" @punctuation.special) @embedded
61
+
62
+ (escape_sequence) @string.escape
63
+
64
+ [
65
+ (string)
66
+ (charlist)
67
+ ] @string
68
+
69
+ [
70
+ (atom)
71
+ (quoted_atom)
72
+ (keyword)
73
+ (quoted_keyword)
74
+ ] @string.special.symbol
75
+
76
+ ; Note that we explicitly target sigil quoted start/end, so they are not overridden by delimiters
77
+
78
+ (sigil
79
+ (sigil_name) @__name__
80
+ quoted_start: _ @string.special
81
+ quoted_end: _ @string.special) @string.special
82
+
83
+ (sigil
84
+ (sigil_name) @__name__
85
+ quoted_start: _ @string
86
+ quoted_end: _ @string
87
+ (#match? @__name__ "^[sS]$")) @string
88
+
89
+ (sigil
90
+ (sigil_name) @__name__
91
+ quoted_start: _ @string.regex
92
+ quoted_end: _ @string.regex
93
+ (#match? @__name__ "^[rR]$")) @string.regex
94
+
95
+ ; Calls
96
+
97
+ ; * local function call
98
+ (call
99
+ target: (identifier) @function)
100
+
101
+ ; * remote function call
102
+ (call
103
+ target: (dot
104
+ right: (identifier) @function))
105
+
106
+ ; * field without parentheses or block
107
+ (call
108
+ target: (dot
109
+ right: (identifier) @property)
110
+ .)
111
+
112
+ ; * remote call without parentheses or block (overrides above)
113
+ (call
114
+ target: (dot
115
+ left: [
116
+ (alias)
117
+ (atom)
118
+ ]
119
+ right: (identifier) @function)
120
+ .)
121
+
122
+ ; * definition keyword
123
+ (call
124
+ target: (identifier) @keyword
125
+ (#any-of? @keyword "def" "defdelegate" "defexception" "defguard" "defguardp" "defimpl" "defmacro" "defmacrop" "defmodule" "defn" "defnp" "defoverridable" "defp" "defprotocol" "defstruct"))
126
+
127
+ ; * kernel or special forms keyword
128
+ (call
129
+ target: (identifier) @keyword
130
+ (#any-of? @keyword "alias" "case" "cond" "for" "if" "import" "quote" "raise" "receive" "require" "reraise" "super" "throw" "try" "unless" "unquote" "unquote_splicing" "use" "with"))
131
+
132
+ ; * just identifier in function definition
133
+ (call
134
+ target: (identifier) @keyword
135
+ (arguments
136
+ [
137
+ (identifier) @function
138
+ (binary_operator
139
+ left: (identifier) @function
140
+ operator: "when")
141
+ ])
142
+ (#any-of? @keyword "def" "defdelegate" "defguard" "defguardp" "defmacro" "defmacrop" "defn" "defnp" "defp"))
143
+
144
+ ; * pipe into identifier (function call)
145
+ (binary_operator
146
+ operator: "|>"
147
+ right: (identifier) @function)
148
+
149
+ ; * pipe into identifier (definition)
150
+ (call
151
+ target: (identifier) @keyword
152
+ (arguments
153
+ (binary_operator
154
+ operator: "|>"
155
+ right: (identifier) @variable))
156
+ (#any-of? @keyword "def" "defdelegate" "defguard" "defguardp" "defmacro" "defmacrop" "defn" "defnp" "defp"))
157
+
158
+ ; * pipe into field without parentheses (function call)
159
+ (binary_operator
160
+ operator: "|>"
161
+ right: (call
162
+ target: (dot
163
+ right: (identifier) @function)))
164
+
165
+ ; Operators
166
+
167
+ ; * capture operand
168
+ (unary_operator
169
+ operator: "&"
170
+ operand: (integer) @operator)
171
+
172
+ (operator_identifier) @operator
173
+
174
+ (unary_operator
175
+ operator: _ @operator)
176
+
177
+ (binary_operator
178
+ operator: _ @operator)
179
+
180
+ (dot
181
+ operator: _ @operator)
182
+
183
+ (stab_clause
184
+ operator: _ @operator)
185
+
186
+ ; * module attribute
187
+ (unary_operator
188
+ operator: "@" @attribute
189
+ operand: [
190
+ (identifier) @attribute
191
+ (call
192
+ target: (identifier) @attribute)
193
+ (boolean) @attribute
194
+ (nil) @attribute
195
+ ])
196
+
197
+ ; * doc string
198
+ (unary_operator
199
+ operator: "@" @comment.doc
200
+ operand: (call
201
+ target: (identifier) @comment.doc.__attribute__
202
+ (arguments
203
+ [
204
+ (string) @comment.doc
205
+ (charlist) @comment.doc
206
+ (sigil
207
+ quoted_start: _ @comment.doc
208
+ quoted_end: _ @comment.doc) @comment.doc
209
+ (boolean) @comment.doc
210
+ ]))
211
+ (#any-of? @comment.doc.__attribute__ "moduledoc" "typedoc" "doc"))
212
+
213
+ ; Module
214
+
215
+ (alias) @module
216
+
217
+ (call
218
+ target: (dot
219
+ left: (atom) @module))
220
+
221
+ ; Reserved keywords
222
+
223
+ ["when" "and" "or" "not" "in" "not in" "fn" "do" "end" "catch" "rescue" "after" "else"] @keyword
@@ -0,0 +1,76 @@
1
+ ; Keywords
2
+ [
3
+ "if"
4
+ "then"
5
+ "else"
6
+ "let"
7
+ "in"
8
+ ] @keyword.control.elm
9
+ (case) @keyword.control.elm
10
+ (of) @keyword.control.elm
11
+
12
+ (colon) @keyword.other.elm
13
+ (backslash) @keyword.other.elm
14
+ (as) @keyword.other.elm
15
+ (port) @keyword.other.elm
16
+ (exposing) @keyword.other.elm
17
+ (alias) @keyword.other.elm
18
+ (infix) @keyword.other.elm
19
+
20
+ (arrow) @keyword.operator.arrow.elm
21
+
22
+ (port) @keyword.other.port.elm
23
+
24
+ (type_annotation(lower_case_identifier) @function.elm)
25
+ (port_annotation(lower_case_identifier) @function.elm)
26
+ (function_declaration_left(lower_case_identifier) @function.elm)
27
+ (function_call_expr target: (value_expr) @function.elm)
28
+
29
+ (field_access_expr(value_expr(value_qid)) @local.function.elm)
30
+ (lower_pattern) @local.function.elm
31
+ (record_base_identifier) @local.function.elm
32
+
33
+
34
+ (operator_identifier) @keyword.operator.elm
35
+ (eq) @keyword.operator.assignment.elm
36
+
37
+
38
+ "(" @punctuation.section.braces
39
+ ")" @punctuation.section.braces
40
+
41
+ "|" @keyword.other.elm
42
+ "," @punctuation.separator.comma.elm
43
+
44
+ (import) @meta.import.elm
45
+ (module) @keyword.other.elm
46
+
47
+ (number_constant_expr) @constant.numeric.elm
48
+
49
+
50
+ (type) @keyword.type.elm
51
+
52
+ (type_declaration(upper_case_identifier) @storage.type.elm)
53
+ (type_ref) @storage.type.elm
54
+ (type_alias_declaration name: (upper_case_identifier) @storage.type.elm)
55
+
56
+ (union_variant(upper_case_identifier) @union.elm)
57
+ (union_pattern) @union.elm
58
+ (value_expr(upper_case_qid(upper_case_identifier)) @union.elm)
59
+
60
+ ; comments
61
+ (line_comment) @comment.elm
62
+ (block_comment) @comment.elm
63
+
64
+ ; strings
65
+ (string_escape) @character.escape.elm
66
+
67
+ (open_quote) @string.elm
68
+ (close_quote) @string.elm
69
+ (regular_string_part) @string.elm
70
+
71
+ (open_char) @char.elm
72
+ (close_char) @char.elm
73
+
74
+
75
+ ; glsl
76
+ (glsl_content) @source.glsl
@@ -0,0 +1,12 @@
1
+ (comment_directive) @comment
2
+
3
+ [
4
+ "<%#"
5
+ "<%"
6
+ "<%="
7
+ "<%_"
8
+ "<%-"
9
+ "%>"
10
+ "-%>"
11
+ "_%>"
12
+ ] @keyword
@@ -0,0 +1,123 @@
1
+ ; Function calls
2
+
3
+ (call_expression
4
+ function: (identifier) @function)
5
+
6
+ (call_expression
7
+ function: (identifier) @function.builtin
8
+ (#match? @function.builtin "^(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)$"))
9
+
10
+ (call_expression
11
+ function: (selector_expression
12
+ field: (field_identifier) @function.method))
13
+
14
+ ; Function definitions
15
+
16
+ (function_declaration
17
+ name: (identifier) @function)
18
+
19
+ (method_declaration
20
+ name: (field_identifier) @function.method)
21
+
22
+ ; Identifiers
23
+
24
+ (type_identifier) @type
25
+ (field_identifier) @property
26
+ (identifier) @variable
27
+
28
+ ; Operators
29
+
30
+ [
31
+ "--"
32
+ "-"
33
+ "-="
34
+ ":="
35
+ "!"
36
+ "!="
37
+ "..."
38
+ "*"
39
+ "*"
40
+ "*="
41
+ "/"
42
+ "/="
43
+ "&"
44
+ "&&"
45
+ "&="
46
+ "%"
47
+ "%="
48
+ "^"
49
+ "^="
50
+ "+"
51
+ "++"
52
+ "+="
53
+ "<-"
54
+ "<"
55
+ "<<"
56
+ "<<="
57
+ "<="
58
+ "="
59
+ "=="
60
+ ">"
61
+ ">="
62
+ ">>"
63
+ ">>="
64
+ "|"
65
+ "|="
66
+ "||"
67
+ "~"
68
+ ] @operator
69
+
70
+ ; Keywords
71
+
72
+ [
73
+ "break"
74
+ "case"
75
+ "chan"
76
+ "const"
77
+ "continue"
78
+ "default"
79
+ "defer"
80
+ "else"
81
+ "fallthrough"
82
+ "for"
83
+ "func"
84
+ "go"
85
+ "goto"
86
+ "if"
87
+ "import"
88
+ "interface"
89
+ "map"
90
+ "package"
91
+ "range"
92
+ "return"
93
+ "select"
94
+ "struct"
95
+ "switch"
96
+ "type"
97
+ "var"
98
+ ] @keyword
99
+
100
+ ; Literals
101
+
102
+ [
103
+ (interpreted_string_literal)
104
+ (raw_string_literal)
105
+ (rune_literal)
106
+ ] @string
107
+
108
+ (escape_sequence) @escape
109
+
110
+ [
111
+ (int_literal)
112
+ (float_literal)
113
+ (imaginary_literal)
114
+ ] @number
115
+
116
+ [
117
+ (true)
118
+ (false)
119
+ (nil)
120
+ (iota)
121
+ ] @constant.builtin
122
+
123
+ (comment) @comment
@@ -0,0 +1,13 @@
1
+ (tag_name) @tag
2
+ (erroneous_end_tag_name) @tag.error
3
+ (doctype) @constant
4
+ (attribute_name) @attribute
5
+ (attribute_value) @string
6
+ (comment) @comment
7
+
8
+ [
9
+ "<"
10
+ ">"
11
+ "</"
12
+ "/>"
13
+ ] @punctuation.bracket