diff vendor/vim-syntax/javascript.vim @ 642:c548e83e4c57

[vim syntax] Update from upstream
author nanaya <me@nanaya.pro>
date Mon, 08 Jun 2020 15:07:48 +0900
parents ced2ee9efd9f
children c74dffea6a0a
line wrap: on
line diff
--- a/vendor/vim-syntax/javascript.vim	Mon Jun 08 15:06:56 2020 +0900
+++ b/vendor/vim-syntax/javascript.vim	Mon Jun 08 15:07:48 2020 +0900
@@ -7,7 +7,7 @@
 "		(ss) repaired several quoting and grouping glitches
 "		(ss) fixed regex parsing issue with multiple qualifiers [gi]
 "		(ss) additional factoring of keywords, globals, and members
-" Last Change:	2019 Sep 27
+" Last Change:	2020 May 14
 " 		2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke)
 " 		2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder)
 
@@ -77,10 +77,10 @@
     syn match	javaScriptParens	   "[()]"
 endif
 
-syn sync fromstart
-syn sync maxlines=100
+if main_syntax == "javascript"
+  syn sync fromstart
+  syn sync maxlines=100
 
-if main_syntax == "javascript"
   syn sync ccomment javaScriptComment
 endif