Commit Graph

81 Commits

Author SHA1 Message Date
Michael Hoffmann fad991865f changelog: bump to 1.2.0
Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
2025-06-16 15:47:02 +03:00
Michael Hoffmann 28e327cd3f fix: precedence of unary operators and expressions
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2025-06-09 21:40:11 +02:00
ObserverOfTime c3172d7873 chore: regenerate parsers 2025-05-16 09:08:19 +02:00
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 9e3ec9848f feat: add namespaced identifiers
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2024-06-24 03:58:23 +02:00
Christian Clason 422cbe1d93 fix(scanner): don't use system includes 2024-06-17 10:17:55 +02:00
Christian Clason 9bb99439aa chore: regenerate with tree-sitter v0.22.6 2024-06-17 10:17:55 +02:00
Michael Hoffmann e2d416afeb fix(scanner): serialize buffer size check
During the check that we dont overflow the serialization buffer we
erroneously checked with size(uint32_t) == 1 which could cause us to
crash with some input strings.

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2024-06-17 00:54:01 -04:00
Michael Hoffmann e135399cb3 fix: github windows cl.exe action
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2023-11-18 13:41:00 +01:00
Michael Hoffmann c3690b9f0c fix(scanner): fix context type
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2023-11-16 17:03:34 +01:00
Michael Hoffmann fdf6463216 fix(scanner): fix segfault
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2023-11-13 16:18:52 +01:00
Amaan Qureshi 229d8e50ab chore: sync generation w/ upstream ts 2023-11-11 09:27:46 +01:00
Amaan Qureshi 573e5bd076 fix: don't truncate lengths 2023-11-11 09:27:46 +01:00
Amaan Qureshi 5160a52f2d feat: rewrite the scanner in C 2023-07-27 07:37:21 +02: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
Andrew Hlynskyi 4e33af0710 Fix a case with an empty body with comment(s) 2023-04-08 15:28:54 +02:00
Andrew Hlynskyi 9903dc0b57 Add a shim to move a comment extra into a body node 2023-04-08 15:28:54 +02:00
Michael Hoffmann b8fcca985c misc: rework shell.nix, reformat, ditch .editorconfig 2023-04-07 12:17:28 +02:00
Michael Hoffmann 6b74f88b3d fix: template expression precedence 2022-12-02 21:24:38 +01:00
Michael Hoffmann a87b709739 fix: allow empty string literals 2022-06-02 20:12:15 +02:00
Xuanwo 8a13647a4d fix: Warning for no-missing-field-initializers
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-22 20:05:07 +02:00
Michael Hoffmann d559c46ba1 deps: bump tree-sitter to 0.20.6 and regenerate parser 2022-04-02 20:07:24 +02: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 9c97f11b4c work on fuzzing makefile; commit corpus 2021-07-01 09:06:06 +02:00
mhoffm 808b2de94f add compile workflow
add fuzzing instrumentation
2021-07-01 02:22:02 +02:00
mhoffm 0e7d8ddb4b fix some 'clang -pedantic' warnings 2021-06-30 19:50:33 +02:00
mhoffm 29bb003f95 fix bug when heredoc_identifier length exceeds CHAR_MAX 2021-06-27 22:27:21 +02:00
mhoffm 888922aff3 start fuzzing 2021-06-27 19:57:02 +02:00
mhoffm fd450bb5f6 fix empty heredoc templates 2021-06-27 15:54:15 +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 0ae2fffe6d fix ending heredoc identifiers must be on single line 2021-06-26 11:11:34 +02:00
mhoffm bc0b3f1eb0 wip make sure that heredoc identifier sits on a line of its own 2021-06-26 10:31:33 +02:00
mhoffm 150c676286 add serialization and deserialization 2021-06-23 20:30:30 +02:00
mhoffm 1d2d1a0998 cleanup some unused code 2021-06-23 00:47:23 +02:00
mhoffm 9761b958e1 cleanup 2021-06-23 00:37:31 +02:00
mhoffm 91e946d55b wip heredoc 2021-06-23 00:34:26 +02:00
mhoffm b9a95e5b48 wip move to cpp external scanner 2021-06-22 23:40:31 +02:00
mhoffm 5a58000ba1 WIP add heredoc templates; only EOF marker at the moment 2021-06-21 22:04:28 +02:00
mhoffm d57a44c2c3 handle string_literal and quoted_template conflict with precedences 2021-06-21 21:08:51 +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 3bc4153bc2 add sanity assertions 2021-06-20 23:11:21 +02:00
mhoffm 22d0a7253c simplify whitespace handling; support hexadecimal numeric literals; allow empty configs 2021-06-20 00:03:58 +02:00