Commit Graph

199 Commits (d90c00d7dd53cd0aba9d5585de0c664aa94c89dd)
 

Author SHA1 Message Date
Michael Davis d90c00d7dd
Add test cases for panic/todo 'as' with expressions
This is newly allowed in v0.33.0 but happened to be allowed in
tree-sitter-gleam anyways.
2023-12-06 18:33:50 +07:00
Michael Davis 11db86c2a0 Generate parser 2023-12-06 23:13:10 +07:00
Michael Davis c63c3b82f3
Parse unicode escape sequences in strings
In v0.33.0, strings can use escapes like `\u{200D}` to escape in
arbitrary unicode codepoints.
2023-12-06 14:22:39 +07:00
Michael Davis b8647148e3
Add test cases for string escape sequences
v0.33.0 will add support for escapes with `\u\d{1,6}`. This adds a
test case that checks the existing escape sequences that we can build on
it later.
2023-12-06 14:12:45 +07:00
Michael Davis b2afa4fd6b
Version 0.32.4 2023-11-13 09:36:14 +07:00
Michael Davis 3f93cccaf2
Version 0.32.3 2023-11-08 10:24:00 +07:00
Michael Davis 152e0d6953 Generate parser 2023-11-08 15:21:18 +07:00
Michael Davis ae4b58b85f
Allow discarding module imports with underscore
Gleam 0.23.3 allows discarding imported modules with the discard syntax.
This needs a small change in tree-sitter-gleam to accept discard nodes
in the import's 'as' field.
2023-11-07 13:07:02 +07:00
Michael Davis 11b843da16
Version 0.32.2 2023-11-05 07:44:40 +07:00
Michael Davis 0589025ee5
deps: Depend on node-gyp in the package.json 2023-11-03 13:00:40 +07:00
Michael Davis 8fe61d3d09
deps: Lock changes 2023-11-03 12:53:57 +07:00
Michael Davis ac19ec396f
deps: Update nan 2023-11-03 12:53:39 +07:00
Michael Davis bd423620e4
Run the CI workflow on ubuntu and macos 2023-11-03 12:48:46 +07:00
Michael Davis ed6bc8b604
Update actions dependencies
This might fix a failure in the release CI which runs on macos and fails
to load with gyp.
2023-11-03 12:46:46 +07:00
Michael Davis 912edd1884
Version 0.32.1 2023-11-03 12:43:30 +07:00
Michael Davis fbe3f240df
Version 0.32.0 2023-11-03 12:32:00 +07:00
Michael Davis b7ae2c9374 Generate parser 2023-11-03 16:29:47 +07:00
Michael Davis 23d2b89651
Remove support for 'try' from the parser
This was 'soft-removed' in the past by removing the highlights and test
cases but we held off on fully removing the parser support. This
finishes the job so that 'try' is no longer treated as a keyword.
This should fix the integration tests. Previously they would fail
against some code in the stdlib which used 'try' as a regular variable
name.
2023-10-29 12:14:58 +07:00
Michael Davis 399172f660 Generate parser 2023-10-29 16:12:12 +07:00
Michael Davis e566689d6d
Parse unqualified type imports with 'type Typename' (#73) 2023-10-29 11:11:53 +07:00
Michael Davis f1fa70c8c3
Version 0.31.0 2023-10-29 12:08:22 +07:00
Michael Davis a14043278d Generate parser 2023-10-29 16:04:59 +07:00
Michael Davis c2665c3c3c
highlights: Move operator captures below keyword captures
This fixes the precedence so that `as` is correctly highlighted as a
keyword even when used like a binary operator (see the parent commit).
2023-10-29 12:03:25 +07:00
Michael Davis aa987f8b7a
Allow 'as' keyword in binary pattern match expressions 2023-10-29 12:03:25 +07:00
Michael Davis 4ccb13e253
Version 0.30.5 2023-10-29 11:54:39 +07:00
Michael Davis 32c8f1e32a
Add a test case for record access syntax within guards
This improvement was mentioned in the v0.31.0 release notes. This is
already supported so all I've done is remove the comment about how the
behavior does not yet exist upstream and add a test case.
2023-09-26 11:03:01 +07:00
Michael Davis 297031dce6 Generate parser 2023-09-11 23:15:04 +07:00
Michael Davis 892e3c5fef
Allow function bodies to be optional (#68) 2023-09-11 18:14:46 +07:00
Michael Davis a59aadf3d7
Version 0.30.4 2023-08-27 19:16:34 +07:00
Michael Davis b754c746e3
Version 0.30.3 2023-08-27 19:16:07 +07:00
Michael Davis 0e82111ed6
Version 0.30.2 2023-08-27 19:15:16 +07:00
Michael Davis 07abf846ae
Version 0.30.1 2023-08-27 19:14:57 +07:00
Michael Davis 01a688709a
Version 0.30.0 2023-08-27 19:14:19 +07:00
Michael Davis 7cc7702f2e Generate parser 2023-08-28 00:10:56 +07:00
Michael Davis 5035109688
Add 'as message' syntax for todo and panic (#64) 2023-08-27 19:10:26 +07:00
Michael Davis 8d712c03ab Generate parser 2023-08-28 00:10:15 +07:00
Michael Davis a1c34b0286
Make 'external' part of external type definitions optional (#63) 2023-08-27 19:09:14 +07:00
Michael Davis 0042037c31 Generate parser 2023-08-28 00:08:58 +07:00
Michael Davis 01cba6b1a1
Parse attribute syntax (#65) 2023-08-27 19:08:32 +07:00
Michael Davis fdb4962bae
Version 0.29.0 2023-08-27 18:54:21 +07:00
Michael Davis b477444bc4
Version 0.28.3 2023-08-27 18:50:22 +07:00
Michael Davis a75656a56b
Version 0.28.2 2023-08-27 18:45:45 +07:00
Michael Davis e8feaf9491 Generate parser 2023-08-27 23:45:04 +07:00
Michael Davis ef45f3b044
Add 'use_assignment' and 'use_assignments' nodes under 'use'
Previously the 'use' node would have many 'identifier' or pattern nodes
and, with the parent commit, types as well. This change should make it
easier to figure out which children nodes of 'use' are associated with
one another.

Co-authored-by: Jonathan Arnett <jonarnett90@gmail.com>
2023-08-27 18:33:10 +07:00
Marcin Koziej ceb48343f7
Add optional type annotations to use assignment 2023-08-27 18:28:54 +07:00
Marcin Koziej 766a2df232
Add test example for issue #56 2023-08-27 18:27:57 +07:00
Amaan Qureshi 4f4e80fd61 Generate parser 2023-08-27 22:41:25 +07:00
Amaan Qureshi 07da684bad
Remove unnecessary conflict (#66) 2023-08-27 17:40:57 +07:00
Michael Davis 8302c98ed7 Remove support for 'try' (#53)
'try' has been removed from the upstream parser.
2023-07-29 21:00:46 +07:00
Alex Manning 80ae1e8de4 Generate parser 2023-07-29 21:00:46 +07:00