diff options
| author | savanto <savanto@users.noreply.github.com> | 2025-03-29 17:30:28 -0500 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-03-30 17:23:08 +0200 |
| commit | 9df671fda41bc4af91b9f7ea3fa1628ba988a77b (patch) | |
| tree | f41fa0fc00fb8c542db5738e64a1a2b1084af90b | |
| parent | bot(lockfile): update dhall, enforce, http, javadoc, nu, superhtml, tcl, tera (diff) | |
| download | nvim-treesitter-9df671fda41bc4af91b9f7ea3fa1628ba988a77b.tar nvim-treesitter-9df671fda41bc4af91b9f7ea3fa1628ba988a77b.tar.gz nvim-treesitter-9df671fda41bc4af91b9f7ea3fa1628ba988a77b.tar.bz2 nvim-treesitter-9df671fda41bc4af91b9f7ea3fa1628ba988a77b.tar.lz nvim-treesitter-9df671fda41bc4af91b9f7ea3fa1628ba988a77b.tar.xz nvim-treesitter-9df671fda41bc4af91b9f7ea3fa1628ba988a77b.tar.zst nvim-treesitter-9df671fda41bc4af91b9f7ea3fa1628ba988a77b.zip | |
dhall: recognize several missing builtins
- recognize builtin type `Bool`
- recognize import `... as Bytes`
- recognize builtin functions `Date/show`, `Time/show`, `TimeZone/show`
- recognize a bytes literal (ie. `0x"deadbeef"`)
| -rw-r--r-- | queries/dhall/highlights.scm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/queries/dhall/highlights.scm b/queries/dhall/highlights.scm index efd7fedf2..d7a5d0006 100644 --- a/queries/dhall/highlights.scm +++ b/queries/dhall/highlights.scm @@ -1,4 +1,3 @@ -; Text ; Imports (missing_import) @keyword.import @@ -12,6 +11,7 @@ ] @string.special [ + (import_as_bytes) (import_as_location) (import_as_text) ] @type @@ -92,6 +92,7 @@ (builtin [ + "Bool" "Natural" "Natural/build" "Natural/fold" @@ -121,8 +122,11 @@ "Text/replace" "Optional" "Date" + "Date/show" "Time" + "Time/show" "TimeZone" + "TimeZone/show" "Type" "Kind" "Sort" @@ -164,7 +168,10 @@ ] @keyword.conditional ; Literals -(text_literal) @string +[ + (text_literal) + (bytes_literal) +] @string (interpolation "}" @string) |
