Commit graph

24 commits

Author SHA1 Message Date
Bruno BELANYI 42bef1d592 Add punctuations highlighting 2024-04-09 12:28:28 +01:00
Bruno BELANYI 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
Bruno BELANYI 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
Bruno BELANYI 91e6f7841c Add operators highlighting 2024-04-09 12:28:28 +01:00
Bruno BELANYI 69e7f36f75 Add variables highlighting 2024-04-09 12:28:28 +01:00
Bruno BELANYI b9fd34c084 Add literals highlighting 2024-04-08 20:48:15 +01:00
Bruno BELANYI e2aa90e0f4 Add comments highlighting 2024-04-08 20:48:15 +01:00
Bruno BELANYI 384da2d065 Add test for multiple modules 2024-04-08 20:27:53 +01:00
Bruno BELANYI eec21c84da Add block comments 2024-04-08 20:15:59 +01:00
Bruno BELANYI 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
Bruno BELANYI 3e46a9b762 Add 'operator' aliases 2024-04-08 20:15:59 +01:00
Bruno BELANYI 25924c3c5c Add binary expression 2024-04-08 20:15:59 +01:00
Bruno BELANYI 2549f6f0db Add 'property' alias
It makes the syntax tree more readable.
2024-04-08 20:15:59 +01:00
Bruno BELANYI 8bd249fc90 Add modules 2024-04-08 20:15:59 +01:00
Bruno BELANYI a78ad8139f Add 'soong_config_variable' selection 2024-04-08 20:15:59 +01:00
Bruno BELANYI 12553c3bb8 Add 'select' expression
Except for 'soong_config_variable' which is not yet handled.
2024-04-08 20:15:59 +01:00
Bruno BELANYI 9dd109b90a Add boolean literals 2024-04-08 20:15:59 +01:00
Bruno BELANYI db2e88a539 Add map expressions 2024-04-08 20:15:59 +01:00
Bruno BELANYI e13f15e8db Add list expressions 2024-04-08 20:15:59 +01:00
Bruno BELANYI 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
Bruno BELANYI 57b38c01c0 Add negative integers 2024-04-08 20:15:59 +01:00
Bruno BELANYI 26b6891160 Add comments 2024-04-08 20:15:59 +01:00
Bruno BELANYI bc06816b57 Add '+=' assignment 2024-04-08 20:15:59 +01:00
Bruno BELANYI 38bf9532ad Add assignment 2024-04-08 20:15:59 +01:00