mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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
cb1d1dcc87
Co-authored-by: Simão Afonso @ Powertools Tech <simao.afonso@powertools-tech.com>
This commit is contained in:
@ -1,13 +1,14 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: SKILL
|
" Language: SKILL
|
||||||
" Maintainer: Toby Schaffer <jtschaff@eos.ncsu.edu>
|
" Maintainer: Toby Schaffer <jtschaff@eos.ncsu.edu>
|
||||||
" Last Change: 2003 May 11
|
|
||||||
" Comments: SKILL is a Lisp-like programming language for use in EDA
|
" Comments: SKILL is a Lisp-like programming language for use in EDA
|
||||||
" tools from Cadence Design Systems. It allows you to have
|
" tools from Cadence Design Systems. It allows you to have
|
||||||
" a programming environment within the Cadence environment
|
" a programming environment within the Cadence environment
|
||||||
" that gives you access to the complete tool set and design
|
" that gives you access to the complete tool set and design
|
||||||
" database. This file also defines syntax highlighting for
|
" database. This file also defines syntax highlighting for
|
||||||
" certain Design Framework II interface functions.
|
" 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
|
" quit when a syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
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
|
syn match skilltechFunctions "\<\(tech\|tc\)\u\a\+("he=e-1
|
||||||
|
|
||||||
" strings
|
" strings
|
||||||
syn region skillString start=+"+ skip=+\\"+ end=+"+
|
syn region skillString start=+"+ skip=+\\\@<!\\"+ end=+"+
|
||||||
|
|
||||||
syn keyword skillTodo contained TODO FIXME XXX
|
syn keyword skillTodo contained TODO FIXME XXX
|
||||||
syn keyword skillNote contained NOTE IMPORTANT
|
syn keyword skillNote contained NOTE IMPORTANT
|
||||||
|
Reference in New Issue
Block a user