Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit20e14aa

Browse files
committed
fixpython-mode#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)
1 parentb92c982 commit20e14aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎syntax/python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ endif
7878

7979
synkeywordpythonStatement defnextgroup=pythonFunctionskipwhite
8080
synmatchpythonFunction"\%(\%(def\s\|@\)\s*\)\@<=\h\%(\w\|\.\)*"containednextgroup=pythonVars
81-
synregionpythonVarsstart="("end=")"containedcontains=pythonParameterstransparentkeepend
81+
synregionpythonVarsstart="("skip=+\(".*"\|'.*'\)+end=")"containedcontains=pythonParameterstransparentkeepend
8282
synmatchpythonParameters"[^,]*"containedcontains=pythonParamskipwhite
8383
synmatchpythonParam"[^,]*"containedcontains=pythonExtraOperator,pythonLambdaExpr,pythonBuiltinObj,pythonBuiltinType,pythonConstant,pythonString,pythonNumber,pythonBrackets,pythonSelfskipwhite
8484
synmatchpythonBrackets"{[(|)]}"containedskipwhite

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp