runtime(skill): Update syntax file to fix string escapes
Commit:
https://github.com/vim/vim/commit/cb1d1dcc879cadfe81ca0088b7e7ebbcd92a9ff3
Author: Sim茫o Afonso @ Powertools Tech <[email protected]>
Date: Tue Oct 8 20:58:41 2024 +0200
runtime(skill): Update syntax file to fix string escapes
The syntax script allowed for single backslash escapes like this
"string\""
But did not accommodate for the uncommon case:
"<key>\"
Let's fix this by also skipping over double backslashes in the
skillString region.
closes: #15832
Signed-off-by: Sim茫o Afonso @ Powertools Tech
<[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/syntax/skill.vim b/runtime/syntax/skill.vim
index 47afffc0a..dd4c191b6 100644
--- a/runtime/syntax/skill.vim
+++ b/runtime/syntax/skill.vim
@@ -1,13 +1,14 @@
" Vim syntax file
" Language: SKILL
" Maintainer: Toby Schaffer <[email protected]>
-" Last Change: 2003 May 11
" Comments: SKILL is a Lisp-like programming language for use in EDA
" tools from Cadence Design Systems. It allows
you to have
" a programming environment within the Cadence
environment
" that gives you access to the complete tool set
and design
" database. This file also defines syntax
highlighting for
" certain Design Framework II interface functions.
+" Last Change: 2003 May 11
+" 2024 Oct 08 by Vim Project: allow double backslashes in skillString
" quit when a syntax file was already loaded
if exists("b:current_syntax")
@@ -509,7 +510,7 @@ syn match skilltechFunctions
"(\(tech\|tc\)\u \+\>"hs=s+1
syn match skilltechFunctions "\<\(tech\|tc\)\u \+("he=e-1
" strings
-syn region skillString start=+"+ skip=+\"+ end=+"+
+syn region skillString start=+"+ skip=+\\@<!\"+ end=+"+
syn keyword skillTodo contained TODO FIXME XXX
syn keyword skillNote contained NOTE IMPORTANT
--
--
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 on the web visit
https://groups.google.com/d/msgid/vim_dev/E1syFfk-003XCi-Sz%40256bit.org.