@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,56 @@
1
+ [
2
+ (string)
3
+ (raw_string)
4
+ (heredoc_body)
5
+ (heredoc_start)
6
+ ] @string
7
+
8
+ (command_name) @function
9
+
10
+ (variable_name) @property
11
+
12
+ [
13
+ "case"
14
+ "do"
15
+ "done"
16
+ "elif"
17
+ "else"
18
+ "esac"
19
+ "export"
20
+ "fi"
21
+ "for"
22
+ "function"
23
+ "if"
24
+ "in"
25
+ "select"
26
+ "then"
27
+ "unset"
28
+ "until"
29
+ "while"
30
+ ] @keyword
31
+
32
+ (comment) @comment
33
+
34
+ (function_definition name: (word) @function)
35
+
36
+ (file_descriptor) @number
37
+
38
+ [
39
+ (command_substitution)
40
+ (process_substitution)
41
+ (expansion)
42
+ ]@embedded
43
+
44
+ [
45
+ "$"
46
+ "&&"
47
+ ">"
48
+ ">>"
49
+ "<"
50
+ "|"
51
+ ] @operator
52
+
53
+ (
54
+ (command (_) @constant)
55
+ (#match? @constant "^-")
56
+ )
@@ -0,0 +1,81 @@
1
+ (identifier) @variable
2
+
3
+ ((identifier) @constant
4
+ (#match? @constant "^[A-Z][A-Z\\d_]*$"))
5
+
6
+ "break" @keyword
7
+ "case" @keyword
8
+ "const" @keyword
9
+ "continue" @keyword
10
+ "default" @keyword
11
+ "do" @keyword
12
+ "else" @keyword
13
+ "enum" @keyword
14
+ "extern" @keyword
15
+ "for" @keyword
16
+ "if" @keyword
17
+ "inline" @keyword
18
+ "return" @keyword
19
+ "sizeof" @keyword
20
+ "static" @keyword
21
+ "struct" @keyword
22
+ "switch" @keyword
23
+ "typedef" @keyword
24
+ "union" @keyword
25
+ "volatile" @keyword
26
+ "while" @keyword
27
+
28
+ "#define" @keyword
29
+ "#elif" @keyword
30
+ "#else" @keyword
31
+ "#endif" @keyword
32
+ "#if" @keyword
33
+ "#ifdef" @keyword
34
+ "#ifndef" @keyword
35
+ "#include" @keyword
36
+ (preproc_directive) @keyword
37
+
38
+ "--" @operator
39
+ "-" @operator
40
+ "-=" @operator
41
+ "->" @operator
42
+ "=" @operator
43
+ "!=" @operator
44
+ "*" @operator
45
+ "&" @operator
46
+ "&&" @operator
47
+ "+" @operator
48
+ "++" @operator
49
+ "+=" @operator
50
+ "<" @operator
51
+ "==" @operator
52
+ ">" @operator
53
+ "||" @operator
54
+
55
+ "." @delimiter
56
+ ";" @delimiter
57
+
58
+ (string_literal) @string
59
+ (system_lib_string) @string
60
+
61
+ (null) @constant
62
+ (number_literal) @number
63
+ (char_literal) @number
64
+
65
+ (field_identifier) @property
66
+ (statement_identifier) @label
67
+ (type_identifier) @type
68
+ (primitive_type) @type
69
+ (sized_type_specifier) @type
70
+
71
+ (call_expression
72
+ function: (identifier) @function)
73
+ (call_expression
74
+ function: (field_expression
75
+ field: (field_identifier) @function))
76
+ (function_declarator
77
+ declarator: (identifier) @function)
78
+ (preproc_function_def
79
+ name: (identifier) @function.special)
80
+
81
+ (comment) @comment
@@ -0,0 +1,212 @@
1
+ (identifier) @variable
2
+
3
+ ;; Methods
4
+
5
+ (method_declaration name: (identifier) @function)
6
+ (local_function_statement name: (identifier) @function)
7
+
8
+ ;; Types
9
+
10
+ (interface_declaration name: (identifier) @type)
11
+ (class_declaration name: (identifier) @type)
12
+ (enum_declaration name: (identifier) @type)
13
+ (struct_declaration (identifier) @type)
14
+ (record_declaration (identifier) @type)
15
+ (namespace_declaration name: (identifier) @module)
16
+
17
+ (generic_name (identifier) @type)
18
+ (type_parameter (identifier) @property.definition)
19
+ (parameter type: (identifier) @type)
20
+ (type_argument_list (identifier) @type)
21
+ (as_expression right: (identifier) @type)
22
+ (is_expression right: (identifier) @type)
23
+
24
+ (constructor_declaration name: (identifier) @constructor)
25
+ (destructor_declaration name: (identifier) @constructor)
26
+
27
+ (_ type: (identifier) @type)
28
+
29
+ (base_list (identifier) @type)
30
+
31
+ (predefined_type) @type.builtin
32
+
33
+ ;; Enum
34
+ (enum_member_declaration (identifier) @property.definition)
35
+
36
+ ;; Literals
37
+
38
+ [
39
+ (real_literal)
40
+ (integer_literal)
41
+ ] @number
42
+
43
+ [
44
+ (character_literal)
45
+ (string_literal)
46
+ (raw_string_literal)
47
+ (verbatim_string_literal)
48
+ (interpolated_string_expression)
49
+ (interpolation_start)
50
+ (interpolation_quote)
51
+ ] @string
52
+
53
+ (escape_sequence) @string.escape
54
+
55
+ [
56
+ (boolean_literal)
57
+ (null_literal)
58
+ ] @constant.builtin
59
+
60
+ ;; Comments
61
+
62
+ (comment) @comment
63
+
64
+ ;; Tokens
65
+
66
+ [
67
+ ";"
68
+ "."
69
+ ","
70
+ ] @punctuation.delimiter
71
+
72
+ [
73
+ "--"
74
+ "-"
75
+ "-="
76
+ "&"
77
+ "&="
78
+ "&&"
79
+ "+"
80
+ "++"
81
+ "+="
82
+ "<"
83
+ "<="
84
+ "<<"
85
+ "<<="
86
+ "="
87
+ "=="
88
+ "!"
89
+ "!="
90
+ "=>"
91
+ ">"
92
+ ">="
93
+ ">>"
94
+ ">>="
95
+ ">>>"
96
+ ">>>="
97
+ "|"
98
+ "|="
99
+ "||"
100
+ "?"
101
+ "??"
102
+ "??="
103
+ "^"
104
+ "^="
105
+ "~"
106
+ "*"
107
+ "*="
108
+ "/"
109
+ "/="
110
+ "%"
111
+ "%="
112
+ ":"
113
+ ] @operator
114
+
115
+ [
116
+ "("
117
+ ")"
118
+ "["
119
+ "]"
120
+ "{"
121
+ "}"
122
+ (interpolation_brace)
123
+ ] @punctuation.bracket
124
+
125
+ ;; Keywords
126
+
127
+ [
128
+ (modifier)
129
+ "this"
130
+ (implicit_type)
131
+ ] @keyword
132
+
133
+ [
134
+ "add"
135
+ "alias"
136
+ "as"
137
+ "base"
138
+ "break"
139
+ "case"
140
+ "catch"
141
+ "checked"
142
+ "class"
143
+ "continue"
144
+ "default"
145
+ "delegate"
146
+ "do"
147
+ "else"
148
+ "enum"
149
+ "event"
150
+ "explicit"
151
+ "extern"
152
+ "finally"
153
+ "for"
154
+ "foreach"
155
+ "global"
156
+ "goto"
157
+ "if"
158
+ "implicit"
159
+ "interface"
160
+ "is"
161
+ "lock"
162
+ "namespace"
163
+ "notnull"
164
+ "operator"
165
+ "params"
166
+ "return"
167
+ "remove"
168
+ "sizeof"
169
+ "stackalloc"
170
+ "static"
171
+ "struct"
172
+ "switch"
173
+ "throw"
174
+ "try"
175
+ "typeof"
176
+ "unchecked"
177
+ "using"
178
+ "while"
179
+ "new"
180
+ "await"
181
+ "in"
182
+ "yield"
183
+ "get"
184
+ "set"
185
+ "when"
186
+ "out"
187
+ "ref"
188
+ "from"
189
+ "where"
190
+ "select"
191
+ "record"
192
+ "init"
193
+ "with"
194
+ "let"
195
+ ] @keyword
196
+
197
+ ;; Attribute
198
+
199
+ (attribute name: (identifier) @attribute)
200
+
201
+ ;; Parameters
202
+
203
+ (parameter
204
+ name: (identifier) @variable.parameter)
205
+
206
+ ;; Type constraints
207
+
208
+ (type_parameter_constraints_clause (identifier) @property.definition)
209
+
210
+ ;; Method calls
211
+
212
+ (invocation_expression (member_access_expression name: (identifier) @function))
@@ -0,0 +1,77 @@
1
+ ; Functions
2
+
3
+ (call_expression
4
+ function: (qualified_identifier
5
+ name: (identifier) @function))
6
+
7
+ (template_function
8
+ name: (identifier) @function)
9
+
10
+ (template_method
11
+ name: (field_identifier) @function)
12
+
13
+ (template_function
14
+ name: (identifier) @function)
15
+
16
+ (function_declarator
17
+ declarator: (qualified_identifier
18
+ name: (identifier) @function))
19
+
20
+ (function_declarator
21
+ declarator: (field_identifier) @function)
22
+
23
+ ; Types
24
+
25
+ ((namespace_identifier) @type
26
+ (#match? @type "^[A-Z]"))
27
+
28
+ (auto) @type
29
+
30
+ ; Constants
31
+
32
+ (this) @variable.builtin
33
+ (null "nullptr" @constant)
34
+
35
+ ; Modules
36
+ (module_name
37
+ (identifier) @module)
38
+
39
+ ; Keywords
40
+
41
+ [
42
+ "catch"
43
+ "class"
44
+ "co_await"
45
+ "co_return"
46
+ "co_yield"
47
+ "constexpr"
48
+ "constinit"
49
+ "consteval"
50
+ "delete"
51
+ "explicit"
52
+ "final"
53
+ "friend"
54
+ "mutable"
55
+ "namespace"
56
+ "noexcept"
57
+ "new"
58
+ "override"
59
+ "private"
60
+ "protected"
61
+ "public"
62
+ "template"
63
+ "throw"
64
+ "try"
65
+ "typename"
66
+ "using"
67
+ "concept"
68
+ "requires"
69
+ "virtual"
70
+ "import"
71
+ "export"
72
+ "module"
73
+ ] @keyword
74
+
75
+ ; Strings
76
+
77
+ (raw_string_literal) @string
@@ -0,0 +1,76 @@
1
+ (comment) @comment
2
+
3
+ (tag_name) @tag
4
+ (nesting_selector) @tag
5
+ (universal_selector) @tag
6
+
7
+ "~" @operator
8
+ ">" @operator
9
+ "+" @operator
10
+ "-" @operator
11
+ "*" @operator
12
+ "/" @operator
13
+ "=" @operator
14
+ "^=" @operator
15
+ "|=" @operator
16
+ "~=" @operator
17
+ "$=" @operator
18
+ "*=" @operator
19
+
20
+ "and" @operator
21
+ "or" @operator
22
+ "not" @operator
23
+ "only" @operator
24
+
25
+ (attribute_selector (plain_value) @string)
26
+
27
+ ((property_name) @variable
28
+ (#match? @variable "^--"))
29
+ ((plain_value) @variable
30
+ (#match? @variable "^--"))
31
+
32
+ (class_name) @property
33
+ (id_name) @property
34
+ (namespace_name) @property
35
+ (property_name) @property
36
+ (feature_name) @property
37
+
38
+ (pseudo_element_selector (tag_name) @attribute)
39
+ (pseudo_class_selector (class_name) @attribute)
40
+ (attribute_name) @attribute
41
+
42
+ (function_name) @function
43
+
44
+ "@media" @keyword
45
+ "@import" @keyword
46
+ "@charset" @keyword
47
+ "@namespace" @keyword
48
+ "@supports" @keyword
49
+ "@keyframes" @keyword
50
+ (at_keyword) @keyword
51
+ (to) @keyword
52
+ (from) @keyword
53
+ (important) @keyword
54
+
55
+ (string_value) @string
56
+ (color_value) @string.special
57
+
58
+ (integer_value) @number
59
+ (float_value) @number
60
+ (unit) @type
61
+
62
+ [
63
+ "#"
64
+ ","
65
+ "."
66
+ ":"
67
+ "::"
68
+ ";"
69
+ ] @punctuation.delimiter
70
+
71
+ [
72
+ "{"
73
+ ")"
74
+ "("
75
+ "}"
76
+ ] @punctuation.bracket
@@ -0,0 +1,13 @@
1
+ ; Dart highlights (minimal)
2
+ (comment) @comment
3
+ (string_literal) @string
4
+ (number) @number
5
+ (boolean) @boolean
6
+ (null) @constant.builtin
7
+ ["if" "else" "for" "while" "do" "switch" "case" "default" "break" "continue" "return" "throw" "try" "catch" "finally" "async" "await" "yield"] @keyword
8
+ ["class" "extends" "implements" "with" "abstract" "static" "final" "const" "late" "required"] @keyword
9
+ ["import" "export" "library" "part" "show" "hide" "as" "deferred"] @keyword.import
10
+ ["void" "var" "dynamic" "int" "double" "num" "String" "bool" "List" "Map" "Set"] @type.builtin
11
+ (type_identifier) @type
12
+ (function_signature name: (identifier) @function)
13
+ (identifier) @variable
@@ -0,0 +1,72 @@
1
+ ;; Special forms
2
+ [
3
+ "and"
4
+ "catch"
5
+ "cond"
6
+ "condition-case"
7
+ "defconst"
8
+ "defvar"
9
+ "function"
10
+ "if"
11
+ "interactive"
12
+ "lambda"
13
+ "let"
14
+ "let*"
15
+ "or"
16
+ "prog1"
17
+ "prog2"
18
+ "progn"
19
+ "quote"
20
+ "save-current-buffer"
21
+ "save-excursion"
22
+ "save-restriction"
23
+ "setq"
24
+ "setq-default"
25
+ "unwind-protect"
26
+ "while"
27
+ ] @keyword
28
+
29
+ ;; Function definitions
30
+ [
31
+ "defun"
32
+ "defsubst"
33
+ ] @keyword
34
+ (function_definition name: (symbol) @function)
35
+ (function_definition parameters: (list (symbol) @variable.parameter))
36
+ (function_definition docstring: (string) @comment)
37
+
38
+ ;; Highlight macro definitions the same way as function definitions.
39
+ "defmacro" @keyword
40
+ (macro_definition name: (symbol) @function)
41
+ (macro_definition parameters: (list (symbol) @variable.parameter))
42
+ (macro_definition docstring: (string) @comment)
43
+
44
+ (comment) @comment
45
+
46
+ (integer) @number
47
+ (float) @number
48
+ (char) @number
49
+
50
+ (string) @string
51
+
52
+ [
53
+ "("
54
+ ")"
55
+ "#["
56
+ "["
57
+ "]"
58
+ ] @punctuation.bracket
59
+
60
+ [
61
+ "`"
62
+ "#'"
63
+ "'"
64
+ ","
65
+ ",@"
66
+ ] @operator
67
+
68
+ ;; Highlight nil and t as constants, unlike other symbols
69
+ [
70
+ "nil"
71
+ "t"
72
+ ] @constant.builtin