runtime(hyprlang): fix string recognition
Commit:
https://github.com/vim/vim/commit/a5d19aa44d97151d572362a24efccbfa09d560ae
Author: Luca Saccarola <[email protected]>
Date: Wed Jan 29 10:27:55 2025 +0100
runtime(hyprlang): fix string recognition
fixes: https://github.com/vim/vim/issues/16064
closes: https://github.com/vim/vim/issues/16527
Signed-off-by: Luca Saccarola <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/syntax/hyprlang.vim b/runtime/syntax/hyprlang.vim
index f36c58c64..cde504d9c 100644
--- a/runtime/syntax/hyprlang.vim
+++ b/runtime/syntax/hyprlang.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: hyprlang
" Maintainer: Luca Saccarola <[email protected]>
-" Last Change: 2024 nov 15
+" Last Change: 2025 Jan 29
if exists("b:current_syntax")
finish
@@ -21,7 +21,8 @@ syn region hyprCategory matchgroup=hyprCategoryD
start='^\s*\k\+\s*{' end='^\s*}
" Variables Types
syn match hyprNumber '\%[-+]\<\d\+\>\%[%]' contained
syn match hyprFloat '\%[-+]\<\d\+\.\d\+\>\%[%]' contained
-syn match hyprString '["\'].*["\']' contained
+syn match hyprString "'[^']*'" contained
+syn match hyprString '"[^"]*"' contained
syn match hyprColor 'rgb(\(\w\|\d\)\{6})' contained
syn match hyprColor 'rgba(\(\w\|\d\)\{8})' contained
syn match hyprColor '0x\(\w\|\d\)\{8}' contained
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1td4Of-009DC2-9J%40256bit.org.