From 20e14aa352231d4a9fe497cb0adea9cdb57b6c20 Mon Sep 17 00:00:00 2001 From: Wouter Overmeire Date: Tue, 18 Mar 2014 16:29:26 +0100 Subject: [PATCH] fix #385 (syntax highlighting failure) Syntax highlight failure resolved by skipping everything between ```'``` or ```"```. Before this fix the code below had incorrect syntax highlighting. ![image](http://i.imgur.com/017h22W.png) --- syntax/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/python.vim b/syntax/python.vim index e0416589..4c218c04 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -78,7 +78,7 @@ endif syn keyword pythonStatement def nextgroup=pythonFunction skipwhite syn match pythonFunction "\%(\%(def\s\|@\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonVars - syn region pythonVars start="(" end=")" contained contains=pythonParameters transparent keepend + syn region pythonVars start="(" skip=+\(".*"\|'.*'\)+ end=")" contained contains=pythonParameters transparent keepend syn match pythonParameters "[^,]*" contained contains=pythonParam skipwhite syn match pythonParam "[^,]*" contained contains=pythonExtraOperator,pythonLambdaExpr,pythonBuiltinObj,pythonBuiltinType,pythonConstant,pythonString,pythonNumber,pythonBrackets,pythonSelf skipwhite syn match pythonBrackets "{[(|)]}" contained skipwhite pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy