Commit Graph

38 Commits

Author SHA1 Message Date
maunzCache
91ab40725d feat: fix compiler warnings and generate grammar for tree-sitter 0.25 2025-04-13 18:22:57 +02:00
maunzCache
f0a315ded3 feat: update grammars 2025-03-27 07:18:39 +01:00
Michael Hoffmann
636dbe7030 grammar: remove shim again
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2023-07-25 19:21:31 +02:00
Michael Hoffmann
3cf33b40d4 fix: hanging parser on trailing comment 2023-04-08 20:17:11 +02:00
Michael Hoffmann
486488948b grammar: fix structure of coments in block bodies 2023-04-08 15:36:43 +02:00
Michael Hoffmann
6b74f88b3d fix: template expression precedence 2022-12-02 21:24:38 +01:00
mhoffm
5c348bd23c fix grammar 2021-09-20 21:45:17 +02:00
mhoffm
c0513ba689 add template for directives 2021-09-19 12:00:18 +02:00
mhoffm
735c57ad9c generate parser; add todos for template directives 2021-09-15 22:03:00 +02:00
mhoffm
7a12dfe711 make object, block and tuple delimiters visible 2021-07-04 12:42:29 +02:00
mhoffm
380571cc1a * add field names to object elements
* dont hide template interpolation start/end and quoted template start/end tokens
2021-07-02 08:34:28 +02:00
mhoffm
6c5f3eba28 allow empty templates and template interpolations 2021-06-27 13:54:05 +02:00
mhoffm
edac6a2beb handle identifiers better 2021-06-27 12:22:06 +02:00
mhoffm
5a58000ba1 WIP add heredoc templates; only EOF marker at the moment 2021-06-21 22:04:28 +02:00
mhoffm
a7f23cc579 more real world exampls; fix scanner when scanning empty character in lexer 2021-06-21 19:40:27 +02:00
mhoffm
22d0a7253c simplify whitespace handling; support hexadecimal numeric literals; allow empty configs 2021-06-20 00:03:58 +02:00
mhoffm
b1c3109853 fix operations; add one line blocks 2021-06-19 21:01:03 +02:00
mhoffm
d61fefced0 fix binary operators 2021-06-19 18:10:47 +02:00
mhoffm
5f7a5b5e98 add real world test corpus; work on some parse errors and weirdnesses 2021-06-19 16:56:35 +02:00
mhoffm
9b79cbda48 add precedence to splat operators; test for associativity 2021-06-18 07:29:00 +02:00
mhoffm
b793cd7c37 simplify object elements 2021-06-18 07:20:55 +02:00
mhoffm
88401e3bf3 fmt tests; properly define string literals; work on scanner 2021-06-17 23:47:14 +02:00
mhoffm
01a4a981da fix string literals; trim trailing whitespace 2021-06-14 23:33:28 +02:00
mhoffm
7b91d51683 handle quoted template expressions and template interpolations 2021-06-14 23:11:17 +02:00
mhoffm
3bba72f836 add operation expressions 2021-06-13 09:17:52 +02:00
mhoffm
52247dee63 properly handle escape sequences in string literals 2021-06-12 22:36:10 +02:00
mhoffm
22b921f405 add conditionals 2021-06-12 21:47:30 +02:00
mhoffm
94b188039a add ellipsis token 2021-06-11 23:57:34 +02:00
mhoffm
4db49a13f5 add function name 2021-06-11 23:41:02 +02:00
mhoffm
2226687dd7 more tests; add function expressions 2021-06-11 23:32:22 +02:00
mhoffm
4a0db3b31c add for expressions 2021-06-08 22:32:42 +02:00
mhoffm
49fe1f15c1 add splat expressions 2021-06-08 18:50:12 +02:00
mhoffm
17de5b425a wip 2021-06-08 01:28:18 +02:00
mhoffm
dae5dc8248 add field name to block to highlight its name 2021-06-08 01:08:07 +02:00
mhoffm
c4bfe1228f cleanup 2021-06-08 00:45:23 +02:00
mhoffm
fdb45d9ddd add collections; improve identifier 2021-06-08 00:04:05 +02:00
mhoffm
e67d183d71 fix numeric literals 2021-06-07 22:32:14 +02:00
mhoffm
ba9acb912f initial commit 2021-06-07 20:50:00 +02:00