Commit Graph

238 Commits (1b6570df84c5429113b73e11f3451bdb42d39ee2)
 

Author SHA1 Message Date
GearsDatapacks 1b6570df84 Format grammar.js 2025-04-19 15:42:49 +07:00
GearsDatapacks 4e48fb94bf Add bool `assert` syntax 2025-04-19 15:42:49 +07:00
Louis Pilfold 99ec410150 Disable blank issue 2025-03-20 12:15:08 +07:00
Louis Pilfold 05a162d560
Add issue template 2025-03-20 12:12:41 +07:00
Giacomo Cavalieri e01c88449b add missing echo test 2025-03-06 08:28:21 +07:00
Alex Manning af6043419f Generate parser 2025-02-07 14:27:03 +07:00
Alex Manning 3a5c285357
fix(functions): remove function body alias and use block (#111) 2025-02-07 08:26:13 +07:00
Gears 066704e482 Generate parser 2024-11-26 00:35:28 +07:00
Gears e451746f71
Add support for `let assert ... as` (#107) 2024-11-25 18:34:56 +07:00
Giacomo Cavalieri 2702fe84b9 Generate parser 2024-10-30 19:13:15 +07:00
Giacomo Cavalieri 17590082db add precedence tests 2024-10-30 19:12:59 +07:00
Giacomo Cavalieri 6b2707d97c Fix highlighting bug
Thank you so much to @endofunky!!

Co-authored-by: @endofunky
2024-10-30 19:12:59 +07:00
Giacomo Cavalieri 8db8a0ba8b add echo 2024-10-30 19:12:59 +07:00
Rebecca Valentine 57c9951b29
Bump tree-sitter Rust dep to 0.23 (#101) 2024-09-26 08:29:11 +07:00
Juhan 9586f38658
Add `(block)` for @local.scope (#99) 2024-09-09 07:51:28 +07:00
Giacomo Cavalieri 0d38bfdc04 Generate parser 2024-09-01 13:30:19 +07:00
Giacomo Cavalieri 16e775f33c
Add support for `%` operator in case guards (#96) 2024-09-01 08:30:01 +07:00
Giacomo Cavalieri 426e67087f Generate parser 2024-07-25 20:15:42 +07:00
Giacomo Cavalieri 9a66875ae1
Tests for label shorthands 2024-07-25 15:48:57 +07:00
Giacomo Cavalieri f8a6614480
Add support for label shorthand syntax 2024-07-25 15:48:40 +07:00
Alex Manning 84fa6b0d53 Generate parser 2024-07-19 16:02:22 +07:00
Alex Manning f35f5c96ba
Support Int/Float operators in guard expressions (#92) 2024-07-19 11:02:06 +07:00
ncihnegn 02a17bf9d0 Ignore gleam.so and gleam.so.dSYM/ 2024-05-29 05:11:36 +07:00
Jonas Hietala 8432ffe32c
Bump cargo tree-sitter dependency (#85) 2024-05-07 10:19:57 +07:00
Alex Manning a0b11a1593 Generate parser 2024-04-23 15:23:02 +07:00
Alex Manning e7f5d6ea39
support attributes without arguments (i.e. `@internal`) (#84) 2024-04-23 10:22:39 +07:00
Michael Davis bcf9c45b56 Generate parser 2024-03-18 21:53:30 +07:00
Michael Davis ed9d717629
Allow 'panic' as a function application
This matches the same syntax as 'todo'.

Closes #82
2024-03-18 17:52:22 +07:00
Michael Davis 2012f294ba
Version 1.0.0 2024-03-04 16:19:15 +07:00
Michael Davis e28f8980e3
Use 'error' capture for reserved keywords 2024-03-04 16:16:20 +07:00
Michael Davis 80a358de64
Version 0.34.1 2024-03-04 16:10:57 +07:00
Michael Davis 58b7cac8fc
Add test cases for nested record field access
Connects #81
2024-01-20 09:13:50 +07:00
Michael Davis 62c5388a7b
Version 0.34.0 2024-01-16 09:42:35 +07:00
Michael Davis 9134230a43
highlights: Reserve the "echo" identifier
This is included in the changelog for v0.34.0 - `echo` is now reserved
for future use as a keyword. Following the same strategy as we did
for reserved words like `auto` and `delegate`, we add a warning
highlight any time the identifier is used.
2024-01-16 09:40:50 +07:00
Michael Davis 2b49c49ef6
Version 0.33.0 2023-12-19 17:23:18 +07:00
Michael Davis c9c7f0f017
Deprecate `\e` escape sequence
This was deprecated in v0.33.0-rc2 in favor of the new `\u{...}`
sequences. For now, deprecating it just means highlighting it as a
warning.
2023-12-07 10:39:17 +07:00
Michael Davis 3479db3d20 Generate parser 2023-12-06 23:57:48 +07:00
Michael Davis fa2881904b
Allow boolean negation in guard clauses
This is newly allowed in v0.33.0.
2023-12-06 18:55:15 +07:00
Michael Davis 78123c13e3
highlights: Capture reserved identifiers as 'warning's
These were reserved in v0.33.0 for future use.
2023-12-06 18:46:30 +07:00
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