From 87b1f250980d288f37bfacae8bcafc0d843c2751 Mon Sep 17 00:00:00 2001 From: Omar Valdez Date: Sat, 18 Jan 2025 12:57:44 -0800 Subject: [PATCH] feat(hyprlang): add missing highlights --- queries/hyprlang/highlights.scm | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/queries/hyprlang/highlights.scm b/queries/hyprlang/highlights.scm index 597edcbf4..5e3514125 100644 --- a/queries/hyprlang/highlights.scm +++ b/queries/hyprlang/highlights.scm @@ -16,7 +16,7 @@ (name) @module) (section - device: (device_name) @type) + device: (device_name) @string.special) (variable) @variable @@ -24,7 +24,13 @@ (boolean) @boolean -(mod) @constant +[ + "deg" + (string) + (string_literal) +] @string + +(mod) @constant.builtin [ "rgb" @@ -36,13 +42,14 @@ (legacy_hex) (angle) (hex) - (display) - (position) ] @number -"deg" @type - -"," @punctuation.delimiter +[ + "," + ":" + "x" + "@" +] @punctuation.delimiter [ "("