Commit graph

123 commits

Author SHA1 Message Date
Uy Ha d3f2a7595a chore(release): v0.5.0 2024-06-05 08:42:43 +00:00
Uy Ha 135aae6dd4 chore: add scanner.c to the bindings 2024-06-05 08:42:21 +00:00
Uy Ha a414a4c83d feat!: remove parsing generator expressions
Parsing generator expressions statically is impossible since whether an argument is
interpreted as a generator expression or not depends on the function itself. Hence, the
parsing for it is removed.
2024-06-05 08:32:29 +00:00
Uy Ha a4bc80390f chore: generate with tree-sitter 0.22.6 2024-06-05 08:14:51 +00:00
Access 20ffd6d3b4
chore: bump version to 0.4.3 (#25) 2024-03-19 09:50:27 +02:00
Access ce71cae5e0
chore: update tree_sitter to new one (#24) 2024-03-17 19:23:49 +02:00
Per Nordlöw 7dc1582310 Update binding.gyp
Correct path to scanner.c
2024-03-11 18:33:59 +02:00
Uy Ha f8de25f307 chore: generate with tree-sitter 0.21.0 2024-02-22 06:35:15 +00:00
Access 3175c3f5fd
chore: update tree-sitter (#22) 2024-02-22 08:22:55 +02:00
Uy Ha 73ab4b8e95 chore(release): v0.4.1 2023-08-15 15:07:39 +00:00
Uy Ha d748fb2821 fix: stop excluding single quote (') in unquoted arguments 2023-08-15 15:05:51 +00:00
Uy Ha 3dfc596025 chore(release): v0.4.0 2023-06-28 14:34:24 +00:00
Uy Ha fe9b5e0229 feat: put arguments in argument_list node 2023-06-28 14:33:56 +00:00
Uy Ha 47564fb004 chore(release): v0.3.0 2023-06-28 13:15:38 +00:00
Uy Ha ef75262109 feat: put the body of commands into a body node
This is motivated by helping writing queries for indenting nodes easier
2023-06-28 13:14:23 +00:00
Amaan Qureshi aafadc0d65
refactor: use C for the external scanner (#16) 2023-06-18 16:44:07 +02:00
Beartama 4e210a9ca6
Revert "refactor: use C for the external scanner (#13)" (#15)
This reverts commit 24ed4fd565.
2023-06-18 14:52:52 +02:00
Amaan Qureshi 24ed4fd565
refactor: use C for the external scanner (#13) 2023-06-16 15:42:37 +02:00
Uy Ha 399605a02b chore: release 0.2.0 2023-02-05 17:55:52 +01:00
Uy Ha a32265307a refactor: remove empty line 2022-12-03 13:09:00 +01:00
Uy Ha 686ad8b040 feat: add block command and tests for function, macro, and block 2022-12-03 13:09:00 +01:00
Access 6e51463ef3
fix(escape): \; should also be escape sequences (#9)
Towards to
https://cmake.org/cmake/help/latest/manual/cmake-language.7.html, "\;"
is also escape sequences
2022-08-26 09:50:26 +02:00
Uy Ha 5998363930 chore: release 0.1.0 2022-07-08 12:16:35 +07:00
Uy Ha 81e0f348aa fix: correct url in Cargo.toml 2022-07-08 12:09:00 +07:00
Uy Ha 3d23db47a5 fix: else and endif arguments 2022-07-08 12:04:54 +07:00
Uy Ha 13c7c529d7 fix: add scanner.cc for Rust
Co-authored-by: ShootingStarDragons <ShootingStarDragons@protonmail.com>
2022-07-04 12:48:46 +07:00
Uy Ha b766bd4896 fix: regenerate files for updated name
Co-authored-by: ShootingStarDragons <ShootingStarDragons@protonmail.com>
2022-07-04 12:42:23 +07:00
Uy Ha 961d625282 chore: update dependencies and regenerate parser.c 2022-07-04 12:01:24 +07:00
Uy Ha 5020572408 Fix bug regarding dollar sign but not variable reference 2022-01-26 22:53:15 +01:00
Uy Ha 87795ad552 Ignore build directory 2022-01-26 19:41:33 +01:00
Uy Ha f6616f1e41 Add test for function invocations with and without newline 2021-10-13 08:19:43 +02:00
Uy Ha d5a0b0b992 Parse generator expression 2021-07-06 18:46:05 +02:00
Uy Ha 7355866e1d Use NULL instead of nullptr (to support old compiler) 2021-07-02 10:55:58 +02:00
Uy Ha 2dc6dc0b33 Update REAMDE 2021-07-02 10:09:58 +02:00
Uy Ha 6ea184f8c0 Add test case for if condition having parentheses 2021-07-02 09:26:41 +02:00
Uy Ha f3ecd63233 Fix grammar to have more than one argument between parentheses 2021-07-01 17:02:13 +02:00
Uy Ha 19bb3af0d5 Parse parenteses correctly 2021-07-01 13:36:35 +02:00
Uy Ha 44a026bbf5 Fix comments being regconized incorrectly inside quoted arguments 2021-06-30 21:17:16 +02:00
Uy Ha 52cbc7add1 Seperate $, CACHE, and ENV for query purpose 2021-06-30 20:39:02 +02:00
Uy Ha 12ef0b4cab Make $.variable recursive 2021-06-30 07:40:33 +02:00
Uy Ha b8c45d2a2b Fix grammar for allowing white space to appear everywher 2021-06-29 20:35:34 +02:00
Uy Ha e3dfc2cdca Stop treating command argument as special:
- Planning to move the highlight responsibility to the highlight query
- Stop trying to parse frequently used commands
- One test is failing because of `unquoted_argument`, planning to fix
2021-06-27 21:22:42 +02:00
Uy Ha 1669ad95a0 Update README 2021-06-27 13:17:54 +02:00
Uy Ha bd57f88f2d The parser now understands comments (line and bracket) 2021-06-27 13:14:31 +02:00
Uy Ha 9bc53cd0df Parse bracket comment using external scanner
- Due to bracket comment has to have the pattern /[=*[/ follow '#'
  symbol immediately, it's easier to implement it using external scanner
2021-06-26 23:30:27 +02:00
Uy Ha 06d75be374 Extract out to scan_bracket_argument function 2021-06-26 22:52:19 +02:00
Uy Ha 3b2b47dbaa Simplify the grammar using extras and add bracket comment 2021-06-26 18:11:48 +02:00
Uy Ha 0988d2ce86 Add external parser for parsing bracket_argument and also adjust the
test cases accordingly
2021-06-26 02:19:49 +02:00
Uy Ha 364423376f Remove incomplete queries 2021-06-26 02:16:55 +02:00
Uy Ha adb4aecea9 Ignore scanner.obj 2021-06-26 02:16:24 +02:00