diff --git a/ChangeLog.md b/ChangeLog.md index b16221b..624893c 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,14 @@ # Changelog and Loadmap +### Release 0.2.3 + +-(highlight) change some token categories + - '@' is `@character` (was `@constant.builtin`) + - `character` is `@character`(was `@constant.character`) + - `number` is `@numeric` (was `@constant.numeric`) + - `๐•Š` in `HEAD` is `@function` + - `โ‡` in `EXPORT` is `@keyword.directive` + ### Release 0.2.2 - (highlight) render modifiers as `@special` diff --git a/README.md b/README.md index 809c5ec..dfe35c2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # tree-sitter-bqn Structual editing and highlighting [BQN](https://mlochbaum.github.io/BQN) programs with editors powered by [tree-sitter](https://tree-sitter.github.io/) -![](https://user-images.githubusercontent.com/997855/242119630-cf9cc32c-f7ea-4e56-9de1-6366d21074c6.png) +![](https://user-images.githubusercontent.com/997855/242257497-ec2578eb-45e2-46cd-9a52-cc761e1cdc11.png) ## Implementation memo diff --git a/queries/highlights.scm b/queries/highlights.scm index 3677ef4..cf2e15b 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -1,4 +1,4 @@ -["ยท" "@"] @constant.builtin +["ยท"] @constant.builtin ["โ€ฟ" "โŸจ" "โŸฉ" "[" "]"] @operator ["(" ")" "{" "}"] @punctuation.bracket @@ -8,12 +8,13 @@ ";" ":" "โ‹„" + "โ‡" (ASGN) ] @keyword.directive (comment) @comment -(character) @constant.character -(number) @constant.numeric +["@" (character)] @character +(number) @numeric (string) @string [ @@ -24,6 +25,7 @@ [ (specialname_F) + "๐•Š" (symbol_Fl) (symbol_F) (system_F)