Amaan Qureshi
d38aa596e1
fix(generate): improve error message when a duplicate token is used as the word token
2025-01-10 02:58:38 -05:00
Amaan Qureshi
4d6740980c
fix(generate): improve display of token sets with escape characters
2025-01-10 02:58:38 -05:00
Amaan Qureshi
68e707eb4f
feat: support passing in a Rust regex in the grammar dsl
2025-01-06 20:52:19 -05:00
WillLillis
867433afd7
feat(rust): use thiserror for generate crate
...
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2025-01-05 00:27:12 -05:00
Riley Bruins
19482834bd
feat: add Supertype API
...
Introduces a new function that takes in a supertype symbol and returns
all associated subtypes. Can be used by query.c to give better errors
for invalid subtypes, as well as downstream applications like the query
LSP to give better diagnostics.
2025-01-05 00:14:09 -05:00
Owen Shepherd
77f74a05c7
chore(generate): remove unused fields
2025-01-02 22:11:04 -05:00
Max Brunsfeld
201b41cf11
feat: add 'reserved word' construct
...
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2024-12-23 03:06:32 -05:00
Amaan Qureshi
8744a4e3f2
feat(lib): use const for TSCharacterRanges
2024-12-23 01:19:10 -05:00
Amaan Qureshi
274e60a523
fix: clippy lints
2024-11-16 03:20:59 -05:00
Amaan Qureshi
05b2f443ba
fix: clippy lint
2024-11-15 23:54:18 -05:00
Riley Bruins
bcf82da55c
refactor: reuse symbol variable in subtype map generator
...
Tiny change to prevent redundant creation of a symbol value in
`node_types.rs`.
2024-11-13 20:54:57 -05:00
Amaan Qureshi
998d2c9d8c
fix(generate): do not set the unit reduction symbol if it's in the extras array
2024-11-02 04:20:40 -04:00
Amaan Qureshi
310a9f0704
fix: disallow tokens that match the empty string
2024-11-02 03:36:11 -04:00
Amaan Qureshi
7baefa8609
fix(cli): use contains over is in warning
2024-11-02 01:31:46 -04:00
dundargoc
a3de650024
fix: make sha generation work with submodules
...
More specifically, change `is_dir` to `exists` as `.git` is a file when
in a submodule.
2024-10-28 12:16:48 +01:00
dundargoc
dc4e232e6e
feat: add build sha to parser.c header comment
2024-10-28 12:16:48 +01:00
ObserverOfTime
c5ee0ac070
feat(lib): add the language name
2024-10-26 23:53:58 +00:00
Amaan Qureshi
42dd32d184
build: remove unicode files and script, move cliff.toml
2024-10-26 23:25:12 +00:00
Amaan Qureshi
c8cf75fd30
feat(generate)!: use regex_syntax::Hir for expanding regexes
...
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2024-10-26 23:25:12 +00:00
Amaan Qureshi
ce93d8fd9b
feat!: bump internal abi to 15
2024-10-26 17:02:00 +00:00
ObserverOfTime
7f0c5f928a
feat(generate): add a comment with the tree-sitter version
2024-10-24 17:07:15 +00:00
ObserverOfTime
881c54e462
fix(lib): handle compiler warnings
2024-10-19 02:57:08 +00:00
Owen Shepherd
e87181ec9c
fix(cli): remove unnecessary referencing/dereferencing in build_parse_table
...
These were probably optimized away, and in any case are only run once,
per CLI run, but may as well remove them.
2024-10-17 15:25:44 -04:00
Amaan Qureshi
9c08edb066
build: configure clippy lints at the workspace level
2024-10-08 21:07:41 -04:00
Will Lillis
5c6445edea
chore: misc clippy lints
2024-10-06 17:55:00 -04:00
JCWasmx86
099fd4efb7
feat: allow setting the output directory for generated source files
2024-10-05 21:52:07 -04:00
Amaan Qureshi
2047b22ae5
fix(generate): move generated header files into the generate crate
2024-10-04 00:47:30 -04:00
Amaan Qureshi
49bda0e2c5
fix(generate): filter out unused rules in other spots
2024-10-03 19:32:09 -04:00
Amaan Qureshi
99a0ddc4c2
fix(generate): remove unused rules
2024-10-03 16:40:51 -04:00
Amaan Qureshi
ea3846a2c5
feat: move tree-sitter configuration to dedicated file ( #3700 )
2024-09-30 11:11:23 -04:00
ObserverOfTime
f212605dda
refactor: improve the grammar schema
...
- Publish on the GitHub page
- Specify in the generated file
- Use const/enum instead of pattern
2024-09-28 13:58:30 -04:00
Amaan Qureshi
31f24395b4
feat: move generate logic to its own crate
2024-09-27 17:04:21 -04:00