aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-10-09 09:43:14 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-10-09 10:04:37 +0200
commit525352117b489a73e686a0343ec8b68babc9c921 (patch)
tree05c6f9a87cc2b95cae554752a6c0e5b9e56e8421
parentf449a38f6a47bee30f0d4e291d8234d1ac8288a7 (diff)
downloadrneovim-525352117b489a73e686a0343ec8b68babc9c921.tar.gz
rneovim-525352117b489a73e686a0343ec8b68babc9c921.tar.bz2
rneovim-525352117b489a73e686a0343ec8b68babc9c921.zip
vim-patch:cb1d1dc: 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: vim/vim#15832 https://github.com/vim/vim/commit/cb1d1dcc879cadfe81ca0088b7e7ebbcd92a9ff3 Co-authored-by: Simão Afonso @ Powertools Tech <simao.afonso@powertools-tech.com>
-rw-r--r--runtime/syntax/skill.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/syntax/skill.vim b/runtime/syntax/skill.vim
index 47afffc0a9..dd4c191b6f 100644
--- a/runtime/syntax/skill.vim
+++ b/runtime/syntax/skill.vim
@@ -1,13 +1,14 @@
" Vim syntax file
" Language: SKILL
" Maintainer: Toby Schaffer <jtschaff@eos.ncsu.edu>
-" 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\a\+\>"hs=s+1
syn match skilltechFunctions "\<\(tech\|tc\)\u\a\+("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