tree-sitter-gnuplot 4.0.0__tar.gz → 4.1.0__tar.gz
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.
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/PKG-INFO +1 -1
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot.egg-info/PKG-INFO +1 -1
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/pyproject.toml +1 -1
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/queries/folds.scm +3 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/queries/highlights.scm +52 -23
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/queries/injections.scm +7 -4
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/src/parser.c +2 -2
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/LICENSE +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/README.md +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot/__init__.py +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot/__init__.pyi +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot/binding.c +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot/py.typed +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot.egg-info/SOURCES.txt +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot.egg-info/dependency_links.txt +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot.egg-info/not-zip-safe +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot.egg-info/requires.txt +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot.egg-info/top_level.txt +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/setup.cfg +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/setup.py +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/src/scanner.c +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/src/tree_sitter/alloc.h +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/src/tree_sitter/array.h +0 -0
- {tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/src/tree_sitter/parser.h +0 -0
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tree-sitter-gnuplot"
|
|
7
7
|
description = "A tree-sitter grammar for gnuplot"
|
|
8
|
-
version = "4.
|
|
8
|
+
version = "4.1.0" # x-release-please-version
|
|
9
9
|
keywords = ["incremental", "parsing", "tree-sitter", "gnuplot"]
|
|
10
10
|
classifiers = [
|
|
11
11
|
"Intended Audience :: Developers",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
; highlights.scm
|
|
2
2
|
(comment) @comment @spell
|
|
3
|
+
|
|
3
4
|
"variable" @variable.parameter
|
|
5
|
+
|
|
4
6
|
;
|
|
5
7
|
; UNTIERED LITERALS — why the bracketed lists below exist
|
|
6
8
|
;
|
|
@@ -21,7 +23,9 @@
|
|
|
21
23
|
"bgnd"
|
|
22
24
|
"background"
|
|
23
25
|
] @variable.parameter.builtin
|
|
26
|
+
|
|
24
27
|
(identifier) @variable
|
|
28
|
+
|
|
25
29
|
[
|
|
26
30
|
"["
|
|
27
31
|
"]"
|
|
@@ -30,7 +34,9 @@
|
|
|
30
34
|
"{"
|
|
31
35
|
"}"
|
|
32
36
|
] @punctuation.bracket
|
|
37
|
+
|
|
33
38
|
(operator) @operator
|
|
39
|
+
|
|
34
40
|
[
|
|
35
41
|
"="
|
|
36
42
|
","
|
|
@@ -39,25 +45,32 @@
|
|
|
39
45
|
; token, so this capture covers both roles
|
|
40
46
|
"<<"
|
|
41
47
|
] @operator
|
|
48
|
+
|
|
42
49
|
; open range end — `set xrange [*:*]`, `array A[*]`: a wildcard, not a product
|
|
43
50
|
"*" @character.special
|
|
51
|
+
|
|
44
52
|
(keyword_op) @keyword.operator
|
|
53
|
+
|
|
45
54
|
(ternary_op) @keyword.conditional.ternary
|
|
55
|
+
|
|
46
56
|
[
|
|
47
57
|
"for"
|
|
48
58
|
"in"
|
|
49
59
|
"do"
|
|
50
60
|
"while"
|
|
51
61
|
] @keyword.repeat
|
|
62
|
+
|
|
52
63
|
; -----------------------------------------------------------------------
|
|
53
64
|
; Commands
|
|
54
65
|
"cmd" @keyword
|
|
66
|
+
|
|
55
67
|
; pseudo plot-elements: they fill an element slot but name no data source
|
|
56
68
|
[
|
|
57
69
|
"newhistogram"
|
|
58
70
|
"newspiderplot"
|
|
59
71
|
"keyentry"
|
|
60
72
|
] @keyword
|
|
73
|
+
|
|
61
74
|
; connector words. `kw_fn` is the alias tier (at/via/from/to/by); `inverse`
|
|
62
75
|
; (set link) and `sample` (plot sample) read the same way in their clause.
|
|
63
76
|
[
|
|
@@ -65,7 +78,9 @@
|
|
|
65
78
|
"sample"
|
|
66
79
|
"kw_fn"
|
|
67
80
|
] @keyword.function
|
|
81
|
+
|
|
68
82
|
"kw_cond" @keyword.conditional
|
|
83
|
+
|
|
69
84
|
[
|
|
70
85
|
"front"
|
|
71
86
|
"back"
|
|
@@ -77,20 +92,25 @@
|
|
|
77
92
|
; coordinate systems (first/second/graph/screen/character/polar) — alias "coord"
|
|
78
93
|
"coord"
|
|
79
94
|
] @keyword.directive
|
|
95
|
+
|
|
80
96
|
; on/off toggle flags ({no}X) — alias "flag"
|
|
81
97
|
"flag" @keyword.directive
|
|
98
|
+
|
|
82
99
|
; enumerated VALUES / modes (alias "mod")
|
|
83
100
|
"mod" @constant
|
|
101
|
+
|
|
84
102
|
; binary rotate= angle-unit suffixes (rotate=90deg / rotate=0.5 pi);
|
|
85
103
|
; the attached form 0.5pi folds into the number token instead
|
|
86
104
|
[
|
|
87
105
|
"degrees"
|
|
88
106
|
"pi"
|
|
89
107
|
] @constant
|
|
108
|
+
|
|
90
109
|
; plot/splot ELEMENT modifiers (alias "attr") — @property
|
|
91
110
|
; (title/notitle/with/using/index/every/axes/smooth in a plot command;
|
|
92
111
|
; distinct from set-option names which are @variable.member)
|
|
93
112
|
"attr" @property
|
|
113
|
+
|
|
94
114
|
; -----------------------------------------------------------------------
|
|
95
115
|
[
|
|
96
116
|
; Terminal output path
|
|
@@ -113,6 +133,7 @@
|
|
|
113
133
|
"opt"
|
|
114
134
|
"arg"
|
|
115
135
|
] @variable.member
|
|
136
|
+
|
|
116
137
|
; -----------------------------------------------------------------------
|
|
117
138
|
; Option keywords
|
|
118
139
|
[
|
|
@@ -289,6 +310,7 @@
|
|
|
289
310
|
"palette"
|
|
290
311
|
; set fit quiet / results / verbose / brief
|
|
291
312
|
] @variable.member
|
|
313
|
+
|
|
292
314
|
; -----------------------------------------------------------------------
|
|
293
315
|
; Presentation / style attributes
|
|
294
316
|
[
|
|
@@ -316,17 +338,22 @@
|
|
|
316
338
|
"st_opt"
|
|
317
339
|
"plt_st"
|
|
318
340
|
] @attribute
|
|
341
|
+
|
|
319
342
|
; binary filetype= value (png/jpg/gif/bin parsed as identifier in field)
|
|
320
343
|
(binary_options
|
|
321
344
|
filetype: (identifier) @attribute)
|
|
345
|
+
|
|
322
346
|
; -----------------------------------------------------------------------
|
|
323
347
|
; Macro / datablock identifiers
|
|
324
348
|
(macro) @function.macro
|
|
349
|
+
|
|
325
350
|
(datablock) @module
|
|
351
|
+
|
|
326
352
|
[
|
|
327
353
|
(datablock_start)
|
|
328
354
|
(datablock_end)
|
|
329
355
|
] @label
|
|
356
|
+
|
|
330
357
|
; -----------------------------------------------------------------------
|
|
331
358
|
; Functions
|
|
332
359
|
;
|
|
@@ -349,30 +376,27 @@
|
|
|
349
376
|
name: (identifier) @function.builtin)
|
|
350
377
|
(#any-of? @function.builtin
|
|
351
378
|
; real / complex math
|
|
352
|
-
"abs" "acos" "acosh" "airy" "arg" "asin" "asinh" "atan" "atan2" "atanh"
|
|
353
|
-
"
|
|
354
|
-
"
|
|
355
|
-
"norm" "rand" "real" "round" "sgn" "sin" "sinh" "sqrt" "tan" "tanh"
|
|
379
|
+
"abs" "acos" "acosh" "airy" "arg" "asin" "asinh" "atan" "atan2" "atanh" "besj0" "besj1" "besjn"
|
|
380
|
+
"besy0" "besy1" "besyn" "besi0" "besi1" "besin" "cbrt" "ceil" "conj" "cos" "cosh" "exp" "floor"
|
|
381
|
+
"imag" "int" "log" "log10" "norm" "rand" "real" "round" "sgn" "sin" "sinh" "sqrt" "tan" "tanh"
|
|
356
382
|
; special functions
|
|
357
|
-
"EllipticK" "EllipticE" "EllipticPi" "erf" "erfc" "expint" "gamma" "ibeta"
|
|
358
|
-
"
|
|
359
|
-
"
|
|
383
|
+
"EllipticK" "EllipticE" "EllipticPi" "erf" "erfc" "expint" "gamma" "ibeta" "igamma" "inverf"
|
|
384
|
+
"invibeta" "invigamma" "invnorm" "LambertW" "lambertw" "lgamma" "lnGamma" "Sign" "SynchrotronF"
|
|
385
|
+
"uigamma" "voigt" "zeta"
|
|
360
386
|
; libcerf
|
|
361
387
|
"cerf" "cdawson" "faddeeva" "erfi" "FresnelC" "FresnelS" "VP" "VP_fwhm"
|
|
362
388
|
; libamos — complex Airy / Bessel
|
|
363
389
|
"Ai" "Bi" "BesselH1" "BesselH2" "BesselJ" "BesselY" "BesselI" "BesselK"
|
|
364
390
|
; strings
|
|
365
|
-
"gprintf" "sprintf" "strlen" "strstrt" "substr" "split" "join" "trim"
|
|
366
|
-
"word" "words" "system"
|
|
391
|
+
"gprintf" "sprintf" "strlen" "strstrt" "substr" "split" "join" "trim" "word" "words" "system"
|
|
367
392
|
; arrays
|
|
368
393
|
"index"
|
|
369
394
|
; time
|
|
370
|
-
"time" "timecolumn" "strftime" "strptime"
|
|
371
|
-
"
|
|
372
|
-
"tm_yday" "tm_year" "weekdate_iso" "weekdate_cdc"
|
|
395
|
+
"time" "timecolumn" "strftime" "strptime" "tm_hour" "tm_mday" "tm_min" "tm_mon" "tm_sec"
|
|
396
|
+
"tm_wday" "tm_week" "tm_yday" "tm_year" "weekdate_iso" "weekdate_cdc"
|
|
373
397
|
; using-specifier / plotting
|
|
374
|
-
"column" "columnhead" "stringcolumn" "strcol" "exists" "valid" "value"
|
|
375
|
-
"
|
|
398
|
+
"column" "columnhead" "stringcolumn" "strcol" "exists" "valid" "value" "hsv2rgb" "palette"
|
|
399
|
+
"rgbcolor" "voxel"))
|
|
376
400
|
|
|
377
401
|
; bare `title columnheader` (the called form `columnheader(N)` is a (function)
|
|
378
402
|
; and matches the builtin list above)
|
|
@@ -409,16 +433,13 @@
|
|
|
409
433
|
;
|
|
410
434
|
; The `\w+_` prefix is deliberate and must not be narrowed to `STATS_`: the
|
|
411
435
|
; prefix is user-selectable (`stats … prefix "FOO"`, `set fit prefix`).
|
|
412
|
-
|
|
413
436
|
; stats: moments — <prefix>_mean/_stddev/_skewness/_kurtosis (+_err) (+_x/_y)
|
|
414
437
|
((identifier) @variable.builtin
|
|
415
|
-
(#match? @variable.builtin
|
|
416
|
-
"^\\w+_(mean|stddev|skewness|kurtosis)(_err)?(_x|_y)?$"))
|
|
438
|
+
(#match? @variable.builtin "^\\w+_(mean|stddev|skewness|kurtosis)(_err)?(_x|_y)?$"))
|
|
417
439
|
|
|
418
440
|
; stats: distribution summaries (+_x/_y)
|
|
419
441
|
((identifier) @variable.builtin
|
|
420
|
-
(#match? @variable.builtin
|
|
421
|
-
"^\\w+_(min|max|sdd|adev|median|sum(sq)?|(lo|up)_quartile)(_x|_y)?$"))
|
|
442
|
+
(#match? @variable.builtin "^\\w+_(min|max|sdd|adev|median|sum(sq)?|(lo|up)_quartile)(_x|_y)?$"))
|
|
422
443
|
|
|
423
444
|
; stats: regression, extents, counts, column metadata
|
|
424
445
|
((identifier) @variable.builtin
|
|
@@ -427,8 +448,7 @@
|
|
|
427
448
|
|
|
428
449
|
; GPVAL_* / MOUSE_* / FIT_* / ARG*
|
|
429
450
|
((identifier) @variable.builtin
|
|
430
|
-
(#match? @variable.builtin
|
|
431
|
-
"^((GPVAL|MOUSE|FIT)_|ARG)\\w+$"))
|
|
451
|
+
(#match? @variable.builtin "^((GPVAL|MOUSE|FIT)_|ARG)\\w+$"))
|
|
432
452
|
|
|
433
453
|
; fixed-name built-ins — plain string comparison, never reaches a regex engine
|
|
434
454
|
((identifier) @variable.builtin
|
|
@@ -438,15 +458,24 @@
|
|
|
438
458
|
; Array definitions
|
|
439
459
|
(def_array
|
|
440
460
|
"array" @keyword.function)
|
|
461
|
+
|
|
462
|
+
; the field matters: a fieldless (identifier) here also catches the index
|
|
463
|
+
; expression, so `cnt[i] = 0` painted `i` as a function
|
|
441
464
|
(array
|
|
442
|
-
(identifier) @function)
|
|
465
|
+
name: (identifier) @function)
|
|
466
|
+
|
|
443
467
|
; -----------------------------------------------------------------------
|
|
444
468
|
; Literals
|
|
445
469
|
"NaN" @constant.builtin
|
|
470
|
+
|
|
446
471
|
(number) @number
|
|
472
|
+
|
|
447
473
|
(string_literal) @string
|
|
474
|
+
|
|
448
475
|
(escape_sequence) @string.escape
|
|
476
|
+
|
|
449
477
|
(format_specifier) @string.special
|
|
450
478
|
|
|
451
479
|
; watchpoint target (`watch y=50`): the axis/expression name being watched
|
|
452
|
-
(plot_element
|
|
480
|
+
(plot_element
|
|
481
|
+
target: (identifier) @variable.member)
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
(#set! injection.language "comment"))
|
|
3
3
|
|
|
4
4
|
; system "command" / ! "command" → bash
|
|
5
|
-
(cmd_system
|
|
5
|
+
(cmd_system
|
|
6
|
+
(string_literal) @injection.content
|
|
6
7
|
(#set! injection.language "bash"))
|
|
7
8
|
|
|
8
9
|
; ! ls / system ls → bash (single identifier)
|
|
9
|
-
(cmd_system
|
|
10
|
+
(cmd_system
|
|
11
|
+
(identifier) @injection.content
|
|
10
12
|
(#set! injection.language "bash"))
|
|
11
13
|
|
|
12
14
|
; system("command") → bash
|
|
13
15
|
((function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
name: (identifier) @_name
|
|
17
|
+
parameters: (parameter_list
|
|
18
|
+
(string_literal) @injection.content))
|
|
16
19
|
(#eq? @_name "system")
|
|
17
20
|
(#set! injection.language "bash"))
|
|
@@ -785345,9 +785345,9 @@ TS_PUBLIC const TSLanguage *tree_sitter_gnuplot(void) {
|
|
|
785345
785345
|
.name = "gnuplot",
|
|
785346
785346
|
.max_reserved_word_set_size = 0,
|
|
785347
785347
|
.metadata = {
|
|
785348
|
-
.major_version =
|
|
785348
|
+
.major_version = 4,
|
|
785349
785349
|
.minor_version = 0,
|
|
785350
|
-
.patch_version =
|
|
785350
|
+
.patch_version = 0,
|
|
785351
785351
|
},
|
|
785352
785352
|
};
|
|
785353
785353
|
return &language;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tree_sitter_gnuplot-4.0.0 → tree_sitter_gnuplot-4.1.0}/bindings/python/tree_sitter_gnuplot/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|