Commit graph

93 commits

Author SHA1 Message Date
aa8472e73f Add test for literals 2024-04-11 18:08:40 +01:00
508ea00920 Add missing 'PHONY' target 2024-04-11 18:01:32 +01:00
dc1d139d35 Fix 'PHONY' target name 2024-04-11 18:00:12 +01:00
ebb642cb14 Rename to 'tree-sitter-bp'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
This is really just to simplify my life and align with the Vim/NeoVim
filetype name.
2024-04-10 15:32:37 +00:00
f6e1266493 Consider module as function call for highlighting
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Their semantic is closer to a function call (like i.e: Bazel rules)
rather than a module/namespace.

Similarly for their properties, which are more like parameters than
members.
2024-04-10 15:21:07 +00:00
be1e3f07d3 Make 'line_comment' more explicit about newlines
Because of the way regular expressions work, they were already bounded
at newlines here, but explicit is better than implicit :-).
2024-04-10 15:20:29 +00:00
73b0797891 Add builtins highlighting 2024-04-10 15:20:29 +00:00
3475d713d5 Add 'select' highlighting 2024-04-09 12:28:28 +01:00
ddb4f693be Add test for 'select' as an identifier 2024-04-09 12:28:28 +01:00
ab6d235540 Add map properties highlighting 2024-04-09 12:28:28 +01:00
42bef1d592 Add punctuations highlighting 2024-04-09 12:28:28 +01:00
a9ec312792 Add modules highlighting
Still debating whether modules should be highlighted as namespaces or as
function calls.
2024-04-09 12:28:28 +01:00
3e4879a593 Add 'type' field to new-style module
I'd forgotten it...
2024-04-09 12:28:28 +01:00
d4d88a6f01 Use nvim semantics in tests
To be more explicit: this makes it so the behaviour is "last-defined,
innermost capture wins".
2024-04-09 12:28:28 +01:00
7d6dce936a Account for '-' as an operator
For syntax purposes it's part of the number, but it looks better when
highlighted as an operator.
2024-04-09 12:28:28 +01:00
91e6f7841c Add operators highlighting 2024-04-09 12:28:28 +01:00
69e7f36f75 Add variables highlighting 2024-04-09 12:28:28 +01:00
b9fd34c084 Add literals highlighting 2024-04-08 20:48:15 +01:00
e2aa90e0f4 Add comments highlighting 2024-04-08 20:48:15 +01:00
384da2d065 Add test for multiple modules 2024-04-08 20:27:53 +01:00
acd1a926ab Release 0.1.0
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/tag/check Pipeline was successful
2024-04-08 20:15:59 +01:00
eec21c84da Add block comments 2024-04-08 20:15:59 +01:00
6d3dd1c8cb Fix line comments syntax
Don't write parsers after midnight kids.

For the explanation: I mixed up the syntax bits between Blueprint and
textual protocol buffers...
2024-04-08 20:15:59 +01:00
7bacff2471 Add 'bump-version' script 2024-04-08 20:15:59 +01:00
3e46a9b762 Add 'operator' aliases 2024-04-08 20:15:59 +01:00
25924c3c5c Add binary expression 2024-04-08 20:15:59 +01:00
5489bd5380 Add README 2024-04-08 20:15:59 +01:00
2549f6f0db Add 'property' alias
It makes the syntax tree more readable.
2024-04-08 20:15:59 +01:00
644f6483fe Add 'element' field name to list 2024-04-08 20:15:59 +01:00
d232c089df Add 'property' field name where relevant 2024-04-08 20:15:59 +01:00
8bd249fc90 Add modules 2024-04-08 20:15:59 +01:00
a78ad8139f Add 'soong_config_variable' selection 2024-04-08 20:15:59 +01:00
12553c3bb8 Add 'select' expression
Except for 'soong_config_variable' which is not yet handled.
2024-04-08 20:15:59 +01:00
9dd109b90a Add boolean literals 2024-04-08 20:15:59 +01:00
db2e88a539 Add map expressions 2024-04-08 20:15:59 +01:00
e13f15e8db Add list expressions 2024-04-08 20:15:59 +01:00
f548b1d5ad Add string literals
Once again, taking the rules more or less straight from tree-sitter-go.
2024-04-08 20:15:59 +01:00
57b38c01c0 Add negative integers 2024-04-08 20:15:59 +01:00
26b6891160 Add comments 2024-04-08 20:15:59 +01:00
bc06816b57 Add '+=' assignment 2024-04-08 20:15:59 +01:00
38bf9532ad Add assignment 2024-04-08 20:15:59 +01:00
fc9f1467df Fix default devShell
Unfortunately, I'll have to wait for a bit until I can use the
playground.
2024-04-08 20:15:33 +01:00
213f5afb11 Bootstrap project 2024-04-08 20:13:47 +01:00