limn-hl 0.1.0 → 0.2.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 (73) hide show
  1. package/README.md +109 -148
  2. package/dist/detect.d.ts +7 -1
  3. package/dist/detect.js +592 -502
  4. package/dist/engine.js +45 -1
  5. package/dist/generated/detect.d.ts +11 -0
  6. package/dist/generated/detect.js +2434 -0
  7. package/dist/generated/grammars.d.ts +119 -0
  8. package/dist/generated/grammars.js +613 -0
  9. package/dist/generated/lang.d.ts +6 -0
  10. package/dist/{lang/index.js → generated/lang.js} +82 -56
  11. package/dist/{theme/generated.d.ts → generated/themes.d.ts} +3 -1
  12. package/dist/{theme/generated.js → generated/themes.js} +29 -0
  13. package/dist/lang.d.ts +1 -0
  14. package/dist/lang.js +1 -0
  15. package/dist/render/ansi.d.ts +1 -1
  16. package/dist/render/html.d.ts +1 -1
  17. package/dist/{theme/index.d.ts → theme.d.ts} +1 -1
  18. package/dist/theme.js +1 -0
  19. package/dist/vm/compile.d.ts +4 -0
  20. package/dist/vm/compile.js +390 -0
  21. package/dist/vm/exec.d.ts +3 -0
  22. package/dist/vm/exec.js +218 -0
  23. package/dist/vm/format.d.ts +255 -0
  24. package/dist/vm/format.js +248 -0
  25. package/dist/vm/index.d.ts +2 -0
  26. package/dist/vm/index.js +2 -0
  27. package/dist/vm/pat.d.ts +4 -0
  28. package/dist/vm/pat.js +701 -0
  29. package/dist/vm/quoted.d.ts +8 -0
  30. package/dist/vm/quoted.js +190 -0
  31. package/dist/vm/scan.d.ts +3 -0
  32. package/dist/vm/scan.js +499 -0
  33. package/dist/wordtable.d.ts +8 -4
  34. package/dist/wordtable.js +107 -30
  35. package/package.json +6 -6
  36. package/dist/lang/clike.d.ts +0 -15
  37. package/dist/lang/clike.js +0 -35
  38. package/dist/lang/clike_helpers.d.ts +0 -8
  39. package/dist/lang/clike_helpers.js +0 -220
  40. package/dist/lang/code.d.ts +0 -45
  41. package/dist/lang/code.js +0 -779
  42. package/dist/lang/config.d.ts +0 -5
  43. package/dist/lang/config.js +0 -164
  44. package/dist/lang/css.d.ts +0 -5
  45. package/dist/lang/css.js +0 -125
  46. package/dist/lang/docs.d.ts +0 -12
  47. package/dist/lang/docs.js +0 -462
  48. package/dist/lang/formats.d.ts +0 -10
  49. package/dist/lang/formats.js +0 -295
  50. package/dist/lang/html.d.ts +0 -11
  51. package/dist/lang/html.js +0 -298
  52. package/dist/lang/index.d.ts +0 -20
  53. package/dist/lang/js.d.ts +0 -9
  54. package/dist/lang/js.js +0 -532
  55. package/dist/lang/js_helpers.d.ts +0 -7
  56. package/dist/lang/js_helpers.js +0 -308
  57. package/dist/lang/json.d.ts +0 -3
  58. package/dist/lang/json.js +0 -136
  59. package/dist/lang/markdown.d.ts +0 -3
  60. package/dist/lang/markdown.js +0 -249
  61. package/dist/lang/python.d.ts +0 -3
  62. package/dist/lang/python.js +0 -335
  63. package/dist/lang/scripting.d.ts +0 -7
  64. package/dist/lang/scripting.js +0 -216
  65. package/dist/lang/shell.d.ts +0 -7
  66. package/dist/lang/shell.js +0 -278
  67. package/dist/lang/specs_gen.d.ts +0 -66
  68. package/dist/lang/specs_gen.js +0 -381
  69. package/dist/lang/terminal.d.ts +0 -9
  70. package/dist/lang/terminal.js +0 -550
  71. package/dist/lang/yaml.d.ts +0 -4
  72. package/dist/lang/yaml.js +0 -176
  73. package/dist/theme/index.js +0 -1
@@ -1,381 +0,0 @@
1
- import { buildCodeGrammar, onceGrammar } from "./code.js";
2
- export const specGo = {
3
- name: "go",
4
- aliases: ["golang"],
5
- keywords: "break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var",
6
- types: "any bool byte comparable complex64 complex128 error float32 float64 int int8 int16 int32 int64 rune string uint uint8 uint16 uint32 uint64 uintptr",
7
- constants: "true false nil iota",
8
- typeAfterKeywords: "type",
9
- lineComments: ["//"],
10
- blockComment: ["/*", "*/"],
11
- quotes: "\"'`",
12
- multilineQuotes: "`",
13
- rawQuotes: "`",
14
- stringEscapes: true
15
- };
16
- export const specC = {
17
- name: "c",
18
- aliases: ["h"],
19
- keywords: "alignas alignof auto break case const constexpr continue default do else enum extern for goto if inline register restrict return sizeof static static_assert struct switch thread_local typedef typeof union volatile while",
20
- types: "bool char double float int long short signed unsigned void size_t ssize_t ptrdiff_t int8_t int16_t int32_t int64_t uint8_t uint16_t uint32_t uint64_t FILE",
21
- constants: "true false NULL nullptr",
22
- typeAfterKeywords: "struct enum union typedef",
23
- lineComments: ["//"],
24
- blockComment: ["/*", "*/"],
25
- quotes: `"'`,
26
- stringEscapes: true
27
- };
28
- export const specCpp = {
29
- name: "cpp",
30
- aliases: ["c++", "cc", "cxx", "hpp"],
31
- keywords: "alignas alignof and and_eq asm auto bitand bitor break case catch class compl concept const consteval constexpr constinit const_cast continue co_await co_return co_yield decltype default delete do dynamic_cast else enum explicit export extern final for friend goto if inline mutable namespace new noexcept not not_eq operator or or_eq override private protected public register reinterpret_cast requires return sizeof static static_assert static_cast struct switch template this thread_local throw try typedef typeid typename union using virtual volatile while xor xor_eq",
32
- types: "bool char char8_t char16_t char32_t double float int long short signed unsigned void wchar_t size_t int8_t int16_t int32_t int64_t uint8_t uint16_t uint32_t uint64_t std string string_view vector map unordered_map optional variant span unique_ptr shared_ptr",
33
- constants: "true false NULL nullptr",
34
- typeAfterKeywords: "class struct enum union typename typedef concept new",
35
- lineComments: ["//"],
36
- blockComment: ["/*", "*/"],
37
- quotes: `"'`,
38
- stringEscapes: true
39
- };
40
- export const specCs = {
41
- name: "cs",
42
- aliases: ["csharp", "c#"],
43
- keywords: "abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach get goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref required return sealed set sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using var virtual volatile when where while yield",
44
- types: "bool byte char decimal double float int long nint nuint object sbyte short string uint ulong ushort void dynamic Task List Dictionary",
45
- constants: "true false null",
46
- typeAfterKeywords: "class struct interface enum record new as is",
47
- lineComments: ["//"],
48
- blockComment: ["/*", "*/"],
49
- quotes: `"'`,
50
- stringEscapes: true
51
- };
52
- export const specJava = {
53
- name: "java",
54
- keywords: "abstract assert break case catch class const continue default do else enum exports extends final finally for goto if implements import instanceof interface module native new non-sealed open opens package permits private protected public record requires return sealed static strictfp super switch synchronized this throw throws to transient transitive try uses var volatile when while with yield",
55
- types: "boolean byte char double float int long short void Boolean Byte Character Double Float Integer Long Short String Object List Map Set Optional",
56
- constants: "true false null",
57
- typeAfterKeywords: "class interface enum record extends implements new instanceof",
58
- lineComments: ["//"],
59
- blockComment: ["/*", "*/"],
60
- quotes: `"'`,
61
- tripleQuotes: true,
62
- stringEscapes: true,
63
- identStartExtra: "$",
64
- prefixIdent: { prefixes: "@" }
65
- };
66
- export const specKt = {
67
- name: "kt",
68
- aliases: ["kotlin", "kts"],
69
- keywords: "abstract actual annotation as break by catch class companion const constructor continue crossinline data delegate do dynamic else enum expect external final finally for fun get if import in infix init inline inner interface internal is lateinit noinline object open operator out override package private protected public reified return sealed set super suspend tailrec this throw try typealias val var vararg when where while",
70
- types: "Any Boolean Byte Char Double Float Int Long Nothing Number Short String Unit Array List MutableList Map MutableMap Set Pair Result",
71
- constants: "true false null",
72
- typeAfterKeywords: "class interface object enum typealias as is",
73
- lineComments: ["//"],
74
- blockComment: ["/*", "*/"],
75
- nestedBlockComments: true,
76
- quotes: `"'`,
77
- tripleQuotes: true,
78
- stringEscapes: true,
79
- interpolation: { kind: "dollarBrace", quotes: '"' },
80
- prefixIdent: { prefixes: "@" }
81
- };
82
- export const specSwift = {
83
- name: "swift",
84
- keywords: "actor any as associatedtype async await break case catch class continue default defer do else enum extension fallthrough fileprivate final for func guard if import in init inout internal is isolated lazy let mutating nonisolated nonmutating open operator optional override private protocol public repeat required rethrows return self Self some static struct subscript super switch throw throws try typealias unowned var weak where while",
85
- types: "Any AnyObject Bool Character Double Float Int Int8 Int16 Int32 Int64 UInt String Void Array Dictionary Set Optional Result Never",
86
- constants: "true false nil",
87
- typeAfterKeywords: "class struct enum protocol extension typealias as is",
88
- lineComments: ["//"],
89
- blockComment: ["/*", "*/"],
90
- nestedBlockComments: true,
91
- quotes: `"'`,
92
- tripleQuotes: true,
93
- stringEscapes: true,
94
- interpolation: { kind: "backslashParen", quotes: `"'` },
95
- typeAfterArrow: true,
96
- prefixIdent: { prefixes: "@" }
97
- };
98
- export const specRs = {
99
- name: "rs",
100
- aliases: ["rust"],
101
- keywords: "as async await break const continue crate dyn else enum extern fn for if impl in let loop match mod move mut pub ref return self Self static struct super trait type union unsafe use where while yield",
102
- types: "bool char f32 f64 i8 i16 i32 i64 i128 isize str u8 u16 u32 u64 u128 usize Box Option Result String Vec Cow Arc Rc",
103
- constants: "true false None Some Ok Err",
104
- typeAfterKeywords: "struct enum trait type impl",
105
- lineComments: ["//"],
106
- blockComment: ["/*", "*/"],
107
- nestedBlockComments: true,
108
- quotes: '"',
109
- multilineQuotes: '"',
110
- stringEscapes: true,
111
- typeAfterArrow: true,
112
- bangMacros: true
113
- };
114
- export const specZig = {
115
- name: "zig",
116
- keywords: "addrspace align allowzero and anyframe anytype asm async await break callconv catch comptime const continue defer else enum errdefer error export extern fn for if inline linksection noalias noinline nosuspend or orelse packed pub resume return struct suspend switch test threadlocal try union unreachable usingnamespace var volatile while",
117
- types: "bool comptime_float comptime_int f16 f32 f64 f80 f128 i8 i16 i32 i64 i128 isize noreturn type u8 u16 u32 u64 u128 usize void anyerror",
118
- constants: "true false null undefined",
119
- lineComments: ["//"],
120
- quotes: `"'`,
121
- stringEscapes: true
122
- };
123
- export const specDart = {
124
- name: "dart",
125
- keywords: "abstract as assert async await base break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory final finally for get hide if implements import in interface is late library mixin new on operator part required rethrow return sealed set show static super switch sync this throw try typedef var void when while with yield",
126
- types: "bool double int num String Object List Map Set Future Stream Iterable dynamic Never",
127
- constants: "true false null",
128
- typeAfterKeywords: "class mixin enum interface extension typedef extends implements new as is",
129
- lineComments: ["//"],
130
- blockComment: ["/*", "*/"],
131
- nestedBlockComments: true,
132
- quotes: `"'`,
133
- tripleQuotes: true,
134
- stringEscapes: true,
135
- interpolation: { kind: "dollarBrace", quotes: `"'` },
136
- identStartExtra: "$",
137
- prefixIdent: { prefixes: "@" }
138
- };
139
- export const specPhp = {
140
- name: "php",
141
- keywords: "abstract and array as break callable case catch class clone const continue declare default die do echo else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval exit extends final finally fn for foreach function global goto if implements include include_once instanceof insteadof interface isset list match namespace new or print private protected public readonly require require_once return static switch throw trait try unset use var while xor yield",
142
- types: "bool float int iterable mixed never object string void self parent",
143
- constants: "true false null TRUE FALSE NULL",
144
- typeAfterKeywords: "class interface trait enum extends implements new instanceof",
145
- lineComments: ["//", "#"],
146
- blockComment: ["/*", "*/"],
147
- quotes: `"'`,
148
- multilineQuotes: `"'`,
149
- rawQuotes: "'",
150
- stringEscapes: true,
151
- interpolation: { kind: "dollarBrace", quotes: '"' },
152
- prefixIdent: { prefixes: "$" }
153
- };
154
- export const specSql = {
155
- name: "sql",
156
- aliases: ["postgres", "postgresql", "sqlite", "mysql"],
157
- keywords: "add all alter and any as asc begin between by case check column commit constraint create cross default delete desc distinct drop else end except exists explain foreign from full group having if in index inner insert intersect into is join key left like limit not nullif offset on or order outer primary recursive references returning right rollback select set table then to transaction truncate union unique update using values view when where with",
158
- types: "bigint binary bit blob boolean char clob date datetime decimal double float int integer json jsonb nchar numeric nvarchar real serial smallint text time timestamp uuid varbinary varchar",
159
- constants: "true false null",
160
- caseInsensitive: true,
161
- lineComments: ["--", "#"],
162
- blockComment: ["/*", "*/"],
163
- quotes: `'"`,
164
- multilineQuotes: `'"`,
165
- rawQuotes: `'"`
166
- };
167
- export const specRb = {
168
- name: "rb",
169
- aliases: ["ruby"],
170
- keywords: "BEGIN END alias and begin break case class def defined? do else elsif end ensure false for if in module next nil not or redo rescue retry return self super then true undef unless until when while yield require require_relative attr_reader attr_writer attr_accessor include extend prepend raise",
171
- constants: "true false nil self __FILE__ __LINE__ __ENCODING__",
172
- typeAfterKeywords: "class module",
173
- lineComments: ["#"],
174
- quotes: `"'`,
175
- multilineQuotes: `"'`,
176
- rawQuotes: "'",
177
- stringEscapes: true,
178
- interpolation: { kind: "hashBrace", quotes: '"' },
179
- identContExtra: "?!",
180
- prefixIdent: { prefixes: "$@", contExtra: "?!" }
181
- };
182
- export const specLua = {
183
- name: "lua",
184
- keywords: "and break do else elseif end for function goto if in local not or repeat return then until while",
185
- constants: "true false nil",
186
- lineComments: ["--"],
187
- quotes: `"'`,
188
- stringEscapes: true
189
- };
190
- export const specNix = {
191
- name: "nix",
192
- keywords: "assert else if import in inherit let or rec then with",
193
- constants: "true false null",
194
- lineComments: ["#"],
195
- blockComment: ["/*", "*/"],
196
- quotes: '"',
197
- multilineQuotes: '"',
198
- stringEscapes: true,
199
- interpolation: { kind: "dollarBrace", quotes: '"' },
200
- identContExtra: "-'"
201
- };
202
- export const specGraphql = {
203
- name: "graphql",
204
- aliases: ["gql"],
205
- keywords: "directive enum extend fragment implements input interface mutation on query repeatable schema subscription type union",
206
- types: "Boolean Float ID Int String",
207
- constants: "true false null",
208
- typeAfterKeywords: "type interface input enum union implements",
209
- lineComments: ["#"],
210
- quotes: '"',
211
- tripleQuotes: true,
212
- stringEscapes: true,
213
- prefixIdent: { prefixes: "$@" }
214
- };
215
- export const specScala = {
216
- name: "scala",
217
- aliases: ["sc"],
218
- keywords: "abstract case catch class def do else enum export extends final finally for forSome given if implicit import lazy match new object override package private protected return sealed super then this throw trait try type using val var while with yield",
219
- types: "Any AnyRef AnyVal Boolean Byte Char Double Float Int Long Nothing Null Short String Unit Option Some None Either Left Right List Seq Set Map Vector Future Try",
220
- constants: "true false null",
221
- typeAfterKeywords: "class trait object enum type extends with new",
222
- lineComments: ["//"],
223
- blockComment: ["/*", "*/"],
224
- nestedBlockComments: true,
225
- quotes: `"'`,
226
- tripleQuotes: true,
227
- stringEscapes: true,
228
- interpolation: { kind: "dollarBrace", quotes: '"' },
229
- prefixIdent: { prefixes: "@" }
230
- };
231
- export const specGroovy = {
232
- name: "groovy",
233
- aliases: ["gradle"],
234
- keywords: "abstract as assert break case catch class const continue def default do else enum extends final finally for goto if implements import in instanceof interface native new non-sealed package permits private protected public record return sealed static strictfp super switch synchronized this throw throws trait transient try var volatile while yield",
235
- types: "boolean byte char double float int long short void Boolean Byte Character Double Float Integer Long Short String Object List Map Set Closure Range",
236
- constants: "true false null",
237
- typeAfterKeywords: "class interface trait enum record extends implements new instanceof",
238
- lineComments: ["//"],
239
- blockComment: ["/*", "*/"],
240
- quotes: `"'`,
241
- tripleQuotes: true,
242
- stringEscapes: true,
243
- interpolation: { kind: "dollarBrace", quotes: '"' },
244
- prefixIdent: { prefixes: "@" }
245
- };
246
- export const specGlsl = {
247
- name: "glsl",
248
- aliases: ["vert", "frag"],
249
- keywords: "attribute break case centroid const continue default discard do else flat for highp if in inout invariant layout lowp mediump noperspective out patch precise return sample smooth struct subroutine switch uniform varying volatile while",
250
- types: "void bool int uint float double vec2 vec3 vec4 dvec2 dvec3 dvec4 bvec2 bvec3 bvec4 ivec2 ivec3 ivec4 uvec2 uvec3 uvec4 mat2 mat3 mat4 mat2x2 mat2x3 mat2x4 mat3x2 mat3x3 mat3x4 mat4x2 mat4x3 mat4x4 sampler1D sampler2D sampler3D samplerCube sampler2DShadow samplerCubeShadow isampler2D usampler2D image2D",
251
- constants: "true false",
252
- typeAfterKeywords: "struct",
253
- lineComments: ["//"],
254
- blockComment: ["/*", "*/"],
255
- quotes: '"',
256
- stringEscapes: true
257
- };
258
- export const specWgsl = {
259
- name: "wgsl",
260
- keywords: "alias break case const const_assert continue continuing default diagnostic discard else enable fallthrough fn for if let loop override requires return struct switch var while",
261
- types: "bool f16 f32 i32 u32 vec2 vec3 vec4 vec2f vec3f vec4f vec2i vec3i vec4i vec2u vec3u vec4u mat2x2 mat2x3 mat2x4 mat3x2 mat3x3 mat3x4 mat4x2 mat4x3 mat4x4 mat2x2f mat3x3f mat4x4f array atomic ptr sampler sampler_comparison texture_1d texture_2d texture_2d_array texture_3d texture_cube texture_storage_2d",
262
- constants: "true false",
263
- typeAfterKeywords: "struct alias",
264
- lineComments: ["//"],
265
- blockComment: ["/*", "*/"],
266
- nestedBlockComments: true,
267
- quotes: '"',
268
- typeAfterArrow: true,
269
- prefixIdent: { prefixes: "@" }
270
- };
271
- export const specSolidity = {
272
- name: "solidity",
273
- aliases: ["sol"],
274
- keywords: "abstract anonymous as assembly break calldata catch constant constructor continue contract delete do else emit enum error event external fallback for function if immutable import indexed interface internal is library mapping memory modifier new override payable pragma private public pure receive return returns revert storage struct super this throw try type unchecked using view virtual while",
275
- types: "address bool byte bytes bytes1 bytes2 bytes4 bytes8 bytes16 bytes20 bytes32 int int8 int16 int32 int64 int128 int256 string uint uint8 uint16 uint32 uint64 uint128 uint256 fixed ufixed",
276
- constants: "true false wei gwei ether seconds minutes hours days weeks",
277
- typeAfterKeywords: "contract interface library struct enum error event is new",
278
- lineComments: ["//"],
279
- blockComment: ["/*", "*/"],
280
- quotes: `"'`,
281
- stringEscapes: true
282
- };
283
- export const specGleam = {
284
- name: "gleam",
285
- keywords: "as assert case const echo else fn if import let opaque panic pub todo type use",
286
- types: "BitArray Bool Float Int List Nil Option Result String UtfCodepoint",
287
- constants: "True False Ok Error Some None Nil",
288
- typeAfterKeywords: "type",
289
- lineComments: ["//"],
290
- quotes: '"',
291
- multilineQuotes: '"',
292
- stringEscapes: true,
293
- typeAfterArrow: true,
294
- prefixIdent: { prefixes: "@" }
295
- };
296
- export const specProto = {
297
- name: "proto",
298
- aliases: ["protobuf"],
299
- keywords: "edition enum export extend extensions import map message oneof option optional package public repeated required reserved returns rpc service stream syntax to weak",
300
- types: "bool bytes double fixed32 fixed64 float int32 int64 sfixed32 sfixed64 sint32 sint64 string uint32 uint64",
301
- constants: "true false",
302
- typeAfterKeywords: "message enum service extend oneof",
303
- lineComments: ["//"],
304
- blockComment: ["/*", "*/"],
305
- quotes: `"'`,
306
- stringEscapes: true
307
- };
308
- export const specHcl = {
309
- name: "hcl",
310
- aliases: ["terraform", "tf"],
311
- keywords: "check data dynamic else for if in import locals module moved output provider removed resource terraform variable",
312
- types: "any bool list map number object set string tuple",
313
- constants: "true false null",
314
- lineComments: ["#", "//"],
315
- blockComment: ["/*", "*/"],
316
- quotes: '"',
317
- stringEscapes: true,
318
- interpolation: { kind: "dollarBrace", quotes: '"' },
319
- identContExtra: "-"
320
- };
321
- export const specPrisma = {
322
- name: "prisma",
323
- keywords: "datasource enum generator model type view",
324
- types: "BigInt Boolean Bytes DateTime Decimal Float Int Json String Unsupported",
325
- constants: "true false null",
326
- typeAfterKeywords: "model enum type view datasource generator",
327
- lineComments: ["//"],
328
- blockComment: ["/*", "*/"],
329
- quotes: '"',
330
- stringEscapes: true,
331
- prefixIdent: { prefixes: "@" }
332
- };
333
- export const specCmake = {
334
- name: "cmake",
335
- keywords: "add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test block break cmake_minimum_required cmake_policy configure_file continue else elseif endblock endforeach endfunction endif endmacro endwhile execute_process fetchcontent_declare fetchcontent_makeavailable file find_library find_package find_path find_program foreach function get_property if include include_directories install list macro mark_as_advanced math message option project return set set_property set_target_properties string target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources unset while",
336
- constants: "ON OFF TRUE FALSE YES NO NOTFOUND PUBLIC PRIVATE INTERFACE STATIC SHARED MODULE OBJECT IMPORTED REQUIRED QUIET CONFIG",
337
- caseInsensitive: true,
338
- lineComments: ["#"],
339
- quotes: '"',
340
- multilineQuotes: '"',
341
- stringEscapes: true,
342
- prefixIdent: { prefixes: "$" }
343
- };
344
- export const specNginx = {
345
- name: "nginx",
346
- aliases: ["nginxconf"],
347
- keywords: "access_log add_header alias auth_basic autoindex client_max_body_size default_type deny error_log error_page events expires fastcgi_pass fastcgi_param gzip gzip_types http if include index keepalive_timeout limit_req limit_req_zone listen location log_format map pid proxy_buffering proxy_cache proxy_http_version proxy_pass proxy_read_timeout proxy_redirect proxy_set_header return rewrite root sendfile server server_name set ssl_certificate ssl_certificate_key ssl_ciphers ssl_protocols tcp_nodelay tcp_nopush try_files types upstream user worker_connections worker_processes",
348
- constants: "on off permanent redirect last break",
349
- lineComments: ["#"],
350
- quotes: `"'`,
351
- stringEscapes: true,
352
- prefixIdent: { prefixes: "$" }
353
- };
354
- export const specR = {
355
- name: "r",
356
- keywords: "break else for function if in next repeat return while library require source stop warning message",
357
- types: "character complex data.frame factor integer list logical matrix numeric vector",
358
- constants: "TRUE FALSE NULL NA NaN Inf NA_integer_ NA_real_ NA_complex_ NA_character_",
359
- lineComments: ["#"],
360
- quotes: `"'`,
361
- multilineQuotes: `"'`,
362
- stringEscapes: true
363
- };
364
- export const go = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specGo));
365
- export const java = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specJava));
366
- export const kt = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specKt));
367
- export const swift = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specSwift));
368
- export const dart = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specDart));
369
- export const sql = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specSql));
370
- export const graphql = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specGraphql));
371
- export const scala = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specScala));
372
- export const groovy = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specGroovy));
373
- export const wgsl = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specWgsl));
374
- export const solidity = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specSolidity));
375
- export const gleam = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specGleam));
376
- export const proto = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specProto));
377
- export const hcl = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specHcl));
378
- export const prisma = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specPrisma));
379
- export const cmake = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specCmake));
380
- export const nginx = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specNginx));
381
- export const r = /* @__PURE__ */ onceGrammar(() => buildCodeGrammar(specR));
@@ -1,9 +0,0 @@
1
- import { Grammar } from "../engine.js";
2
- /** Returns the PowerShell grammar. */
3
- export declare const powershell: () => Grammar;
4
- /** Returns the Windows batch script grammar. */
5
- export declare const bat: () => Grammar;
6
- /** Returns the Assembly grammar (x86-64, ARM64, RISC-V). */
7
- export declare const asm: () => Grammar;
8
- /** Returns the structured/plain log grammar. */
9
- export declare const log: () => Grammar;