Michael Davis
11d78be28e
generalize bit string option node ( #22 )
...
* generalize bit string option node
* highlight bit-string options as function.builtin
2022-03-11 14:16:12 +07:00
Michael Davis
1a9e736304
Generate parser
2022-03-06 23:09:58 +07:00
Michael Davis
17ed2066d4
add unit tests for tags.scm ( #21 )
2022-03-06 18:09:33 +07:00
Michael Davis
459ff49e91
Generate parser
2022-02-28 02:49:55 +07:00
Michael Davis
ce6ee5195b
add visibility_modifier and opacity_modifier rules ( #18 )
...
closes #17
This refactor brings this grammar more in line with tree-sitter-rust.
A function or type declaration may have a visibility modifier ("pub") and
type declarations may also have an opacity modifier ("opaque"). This ends
up reducing the number of named rules, which cleans up the queries a bit.
2022-02-27 21:49:32 +07:00
Jonathan Arnett
cfcbca3f8f
Correct name from "type_constructor" to "data_constructor" ( #16 )
2022-02-26 12:20:54 +07:00
Michael Davis
5cb387020c
add tags.scm queries ( #15 )
2022-02-26 12:16:25 +07:00
Jonathan Arnett
0b8f7bcae9
Move corpus/ under test/
2022-02-24 18:48:31 +07:00
Jonathan Arnett
c4743d7776
Extract parts of a string as separate AST nodes ( #13 )
2022-02-14 11:35:13 +07:00
Jonathan Arnett
b848d3e234
Version 0.19.0
2022-01-29 16:24:14 +07:00
Jonathan Arnett
8df19a592b
Automatically build release on tag push ( #11 )
2022-01-29 16:22:07 +07:00
Jonathan Arnett
9ce6b3c6ad
Generate parser
2022-01-23 22:40:16 +07:00
Jonathan Arnett
de9b2a0ae3
Consider the "field" of field accesses to be a function wherever the "record" is a module ( #10 )
2022-01-23 17:39:54 +07:00
Michael Davis
3ffbfeb43a
make locals.scm queries more granular ( #8 )
...
* make locals.scm queries more granular
* split out (label) nodes from (identifier)
* run formatter
* use (label) for labeled params nodes
* capture all (label)s as properties
2022-01-15 20:13:55 +07:00
Jonathan Arnett
b0a23fe88f
Extend binaryExpr to guards as well
2022-01-15 16:56:44 +07:00
Jonathan Arnett
7a9759c44c
Update ambiguity source comment
2022-01-15 16:43:48 +07:00
Michael Davis
d68eab58cf
use fields for left,operator,right of binary expressions ( #9 )
2022-01-15 15:56:34 +07:00
Jonathan Arnett
41da92c460
Perhaps this will make GitHub happy?
2022-01-15 15:52:46 +07:00
Jonathan Arnett
4e6074ad5d
Remove bindings from generated/vendored list
2022-01-15 15:52:39 +07:00
Michael Davis
60df8383e9
highlight '$.discard' as 'comment.unused' ( #6 )
...
* highlight '$.discard' as 'comment.unused'
* trigger ci run
2022-01-15 14:53:15 +07:00
Michael Davis
4ef644a352
add CI and tune up git config ( #5 )
...
* add CI and 'generate parser' actions workflows
* ignore debug log.html file and wasm files
* mark src/ and bindings/ as generated
* run formatter
* rename CI workflow to 'Test'
* use linguist-vendored rather than linguist-generated
* use raw 'git' commands instead of action
2022-01-15 11:10:49 +07:00
Michael Davis
5f1b1c6569
fix typo in punctuation.delimiter highlight capture ( #4 )
2022-01-15 10:28:57 +07:00
Michael Davis
481ebe0be9
parse implicit discard '..' as '$.list_pattern_tail' ( #3 )
2022-01-14 01:43:58 +07:00
Jonathan Arnett
c2a4e6c519
identifiers inside a unqualified import are functions
2022-01-13 23:51:25 +07:00
Jonathan Arnett
8a48cd6581
If the funcall identifier isn't a local, it's a module function
2022-01-13 23:40:44 +07:00
Jonathan Arnett
9434a8c86c
If the record is a module, the field is a fucntion
2022-01-13 23:40:01 +07:00
Michael Davis
e254d08b7c
highlight modules ( #2 )
...
* highlight modules
* highlight remote type modules as modules
* make string replace variable parameter example less ambiguous
2022-01-13 23:14:02 +07:00
Jonathan Arnett
5b9ac0c6a7
Add missing record pattern label highlight
2022-01-06 01:20:30 +07:00
Jonathan Arnett
01f1c1a361
Rename constructor_pattern to record_pattern
2022-01-06 01:17:38 +07:00
Jonathan Arnett
001b2a7a30
Rename "name" field of pattern_constructor_argument to "label"
...
for consistency
2022-01-06 01:15:12 +07:00
Jonathan Arnett
f14f89db6f
Remove $.var, which is unused
2022-01-06 01:14:14 +07:00
Jonathan Arnett
47ddec1316
Replace field(..., optional(...)) with optional(field( ...))
2022-01-06 01:13:28 +07:00
Jonathan Arnett
fb3105752f
Add Usage section to README
2022-01-04 03:42:10 +07:00
Jonathan Arnett
c340d6491c
Add build-wasm script
2022-01-04 03:42:10 +07:00
Jonathan Arnett
d97c67eab6
Support funky syntax, especially trailing commas
2022-01-04 03:42:10 +07:00
Jonathan Arnett
f3b6cd80cd
Ignore the build directory
...
Not even really sure where it came from
2022-01-04 03:42:10 +07:00
Jonathan Arnett
06ca4e630d
Finish making params match the tree-sitter-rust style
2022-01-04 03:42:10 +07:00
Jonathan Arnett
8e4aaa8d3b
The list of imports can, technically, be empty
2022-01-04 03:42:10 +07:00
Jonathan Arnett
8cdefc6d97
The parser doesn't actually care about newlines... at all
2022-01-04 03:42:10 +07:00
Jonathan Arnett
217beadc2b
Fix typo
2022-01-04 03:42:10 +07:00
Jonathan Arnett
de128e4658
Update, build Rust bindings
2022-01-04 03:42:10 +07:00
Jonathan Arnett
524b120893
Consistify style
2022-01-04 03:42:10 +07:00
Jonathan Arnett
acb389971e
Add very important missing 💁 emoji
2022-01-03 00:35:26 +07:00
Jonathan Arnett
7fb4cbbfdb
Add syntax highlighting queries! ✨
2022-01-03 00:26:47 +07:00
Jonathan Arnett
e174a11f68
Removed error in example
2022-01-03 00:26:47 +07:00
Jonathan Arnett
399ea8eca9
Merged discard_var into discard, var into identifier
2022-01-03 00:26:47 +07:00
Jonathan Arnett
4b90565275
Rework pattern AST nodes a bit
2022-01-02 21:59:34 +07:00
Jonathan Arnett
6a8420e02c
Surface discard parameters in AST
2022-01-02 21:57:05 +07:00
Jonathan Arnett
d08180396b
Refine case structure a tad
2022-01-02 17:00:21 +07:00
Jonathan Arnett
e40a645e11
Also parse comments
2022-01-02 16:50:13 +07:00