Skip to content

Commit b8eb4f1

Browse files
committed
Fix performance issue
1 parent e8dd2b0 commit b8eb4f1

12 files changed

Lines changed: 56 additions & 56 deletions

autoload/syntax/jquery.coffee.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
" Language: jQuery for coffee
33
" Maintainer: othree <othree@gmail.com>
44
" Maintainer: Bruno Michel <brmichel@free.fr>
5-
" Last Change: 2013/02/05
6-
" Version: 1.9
5+
" Last Change: 2013/04/21
6+
" Version: 1.9.0.1
77
" URL: http://api.jquery.com/
88

9-
syntax keyword coffeejQuery containedin=ALLBUT,coffeeComment jQuery $
10-
syntax match coffeejQuerydot containedin=ALLBUT,coffeeComment /\(\<\(jQuery\|\$\)\.\)\@<=\h\w*/ contains=@coffeeQGlobals
11-
syntax match coffeejQuerydot containedin=ALLBUT,coffeeComment /\(\<\(jQuery\|\$\)([^)]*)\.\)\@<=\h\w*/ contains=@coffeeQFunctions
9+
syntax keyword coffeejQuery containedin=ALLBUT,coffeeComment jQuery $ nextgroup=coffeejQuerydot,coffeejQuerybracketsdot
10+
syntax match coffeejQuerydot contained /\./ nextgroup=@coffeeQGlobals
11+
syntax match coffeejQuerydot contained /([^)]*)\./ nextgroup=@coffeeQFunctions
1212

1313
" jQuery.*
1414
syntax cluster coffeeQGlobals contains=coffeeQCore,coffeeQCoreObj,coffeeQCoreData,coffeeQUtilities,coffeeQProperties

autoload/syntax/jquery.javascript.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
" Language: jQuery for javascript
33
" Maintainer: othree <othree@gmail.com>
44
" Maintainer: Bruno Michel <brmichel@free.fr>
5-
" Last Change: 2013/02/05
6-
" Version: 1.9
5+
" Last Change: 2013/04/21
6+
" Version: 1.9.0.1
77
" URL: http://api.jquery.com/
88

9-
syntax keyword javascriptjQuery containedin=ALLBUT,javascriptComment jQuery $
10-
syntax match javascriptjQuerydot containedin=ALLBUT,javascriptComment /\(\<\(jQuery\|\$\)\.\)\@<=\h\w*/ contains=@javascriptQGlobals
11-
syntax match javascriptjQuerydot containedin=ALLBUT,javascriptComment /\(\<\(jQuery\|\$\)([^)]*)\.\)\@<=\h\w*/ contains=@javascriptQFunctions
9+
syntax keyword javascriptjQuery containedin=ALLBUT,javascriptComment jQuery $ nextgroup=javascriptjQuerydot,javascriptjQuerybracketsdot
10+
syntax match javascriptjQuerydot contained /\./ nextgroup=@javascriptQGlobals
11+
syntax match javascriptjQuerydot contained /([^)]*)\./ nextgroup=@javascriptQFunctions
1212

1313
" jQuery.*
1414
syntax cluster javascriptQGlobals contains=javascriptQCore,javascriptQCoreObj,javascriptQCoreData,javascriptQUtilities,javascriptQProperties

autoload/syntax/jquery.ls.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
" Language: jQuery for ls
33
" Maintainer: othree <othree@gmail.com>
44
" Maintainer: Bruno Michel <brmichel@free.fr>
5-
" Last Change: 2013/02/05
6-
" Version: 1.9
5+
" Last Change: 2013/04/21
6+
" Version: 1.9.0.1
77
" URL: http://api.jquery.com/
88

9-
syntax keyword lsjQuery containedin=ALLBUT,lsComment jQuery $
10-
syntax match lsjQuerydot containedin=ALLBUT,lsComment /\(\<\(jQuery\|\$\)\.\)\@<=\h\w*/ contains=@lsQGlobals
11-
syntax match lsjQuerydot containedin=ALLBUT,lsComment /\(\<\(jQuery\|\$\)([^)]*)\.\)\@<=\h\w*/ contains=@lsQFunctions
9+
syntax keyword lsjQuery containedin=ALLBUT,lsComment jQuery $ nextgroup=lsjQuerydot,lsjQuerybracketsdot
10+
syntax match lsjQuerydot contained /\./ nextgroup=@lsQGlobals
11+
syntax match lsjQuerydot contained /([^)]*)\./ nextgroup=@lsQFunctions
1212

1313
" jQuery.*
1414
syntax cluster lsQGlobals contains=lsQCore,lsQCoreObj,lsQCoreData,lsQUtilities,lsQProperties

autoload/syntax/jquery.typescript.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
" Language: jQuery for typescript
33
" Maintainer: othree <othree@gmail.com>
44
" Maintainer: Bruno Michel <brmichel@free.fr>
5-
" Last Change: 2013/02/05
6-
" Version: 1.9
5+
" Last Change: 2013/04/21
6+
" Version: 1.9.0.1
77
" URL: http://api.jquery.com/
88

9-
syntax keyword typescriptjQuery containedin=ALLBUT,typescriptComment jQuery $
10-
syntax match typescriptjQuerydot containedin=ALLBUT,typescriptComment /\(\<\(jQuery\|\$\)\.\)\@<=\h\w*/ contains=@typescriptQGlobals
11-
syntax match typescriptjQuerydot containedin=ALLBUT,typescriptComment /\(\<\(jQuery\|\$\)([^)]*)\.\)\@<=\h\w*/ contains=@typescriptQFunctions
9+
syntax keyword typescriptjQuery containedin=ALLBUT,typescriptComment jQuery $ nextgroup=typescriptjQuerydot,typescriptjQuerybracketsdot
10+
syntax match typescriptjQuerydot contained /\./ nextgroup=@typescriptQGlobals
11+
syntax match typescriptjQuerydot contained /([^)]*)\./ nextgroup=@typescriptQFunctions
1212

1313
" jQuery.*
1414
syntax cluster typescriptQGlobals contains=typescriptQCore,typescriptQCoreObj,typescriptQCoreData,typescriptQUtilities,typescriptQProperties

autoload/syntax/requirejs.coffee.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
" URL: http://requirejs.org/
77

88

9-
syntax keyword coffeeRequire require requirejs containedin=ALLBUT,coffeeComment
10-
syntax match coffeeRequiredot containedin=ALLBUT,coffeeComment /\(\<require\.\|requirejs\.\)\@<=\h\w*/ contains=coffeeRequireMethods
9+
syntax keyword coffeeRequire require requirejs containedin=ALLBUT,coffeeComment nextgroup=coffeeRequiredot
10+
syntax match coffeeRequiredot contained /\./ nextgroup=coffeeRequireMethods
1111
syntax keyword coffeeRequireMethods contained config
1212

13-
syntax keyword coffeeRdefine define containedin=ALLBUT,coffeeComment
14-
syntax match coffeeRdefinedot containedin=ALLBUT,coffeeComment /\(\<define\.\)\@<=\h\w*/ contains=coffeeRdefineMethods
13+
syntax keyword coffeeRdefine define containedin=ALLBUT,coffeeComment nextgroup=coffeeRdefinedot
14+
syntax match coffeeRdefinedot contained /\./ nextgroup=coffeeRdefineMethods
1515
syntax keyword coffeeRdefineMethods contained amd
1616

1717

autoload/syntax/requirejs.javascript.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
" URL: http://requirejs.org/
77

88

9-
syntax keyword javascriptRequire require requirejs containedin=ALLBUT,javascriptComment
10-
syntax match javascriptRequiredot containedin=ALLBUT,javascriptComment /\(\<require\.\|requirejs\.\)\@<=\h\w*/ contains=javascriptRequireMethods
9+
syntax keyword javascriptRequire require requirejs containedin=ALLBUT,javascriptComment nextgroup=javascriptRequiredot
10+
syntax match javascriptRequiredot contained /\./ nextgroup=javascriptRequireMethods
1111
syntax keyword javascriptRequireMethods contained config
1212

13-
syntax keyword javascriptRdefine define containedin=ALLBUT,javascriptComment
14-
syntax match javascriptRdefinedot containedin=ALLBUT,javascriptComment /\(\<define\.\)\@<=\h\w*/ contains=javascriptRdefineMethods
13+
syntax keyword javascriptRdefine define containedin=ALLBUT,javascriptComment nextgroup=javascriptRdefinedot
14+
syntax match javascriptRdefinedot contained /\./ nextgroup=javascriptRdefineMethods
1515
syntax keyword javascriptRdefineMethods contained amd
1616

1717

autoload/syntax/requirejs.ls.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
" URL: http://requirejs.org/
77

88

9-
syntax keyword lsRequire require requirejs containedin=ALLBUT,lsComment
10-
syntax match lsRequiredot containedin=ALLBUT,lsComment /\(\<require\.\|requirejs\.\)\@<=\h\w*/ contains=lsRequireMethods
9+
syntax keyword lsRequire require requirejs containedin=ALLBUT,lsComment nextgroup=lsRequiredot
10+
syntax match lsRequiredot contained /\./ nextgroup=lsRequireMethods
1111
syntax keyword lsRequireMethods contained config
1212

13-
syntax keyword lsRdefine define containedin=ALLBUT,lsComment
14-
syntax match lsRdefinedot containedin=ALLBUT,lsComment /\(\<define\.\)\@<=\h\w*/ contains=lsRdefineMethods
13+
syntax keyword lsRdefine define containedin=ALLBUT,lsComment nextgroup=lsRdefinedot
14+
syntax match lsRdefinedot contained /\./ nextgroup=lsRdefineMethods
1515
syntax keyword lsRdefineMethods contained amd
1616

1717

autoload/syntax/requirejs.typescript.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
" URL: http://requirejs.org/
77

88

9-
syntax keyword typescriptRequire require requirejs containedin=ALLBUT,typescriptComment
10-
syntax match typescriptRequiredot containedin=ALLBUT,typescriptComment /\(\<require\.\|requirejs\.\)\@<=\h\w*/ contains=typescriptRequireMethods
9+
syntax keyword typescriptRequire require requirejs containedin=ALLBUT,typescriptComment nextgroup=typescriptRequiredot
10+
syntax match typescriptRequiredot contained /\./ nextgroup=typescriptRequireMethods
1111
syntax keyword typescriptRequireMethods contained config
1212

13-
syntax keyword typescriptRdefine define containedin=ALLBUT,typescriptComment
14-
syntax match typescriptRdefinedot containedin=ALLBUT,typescriptComment /\(\<define\.\)\@<=\h\w*/ contains=typescriptRdefineMethods
13+
syntax keyword typescriptRdefine define containedin=ALLBUT,typescriptComment nextgroup=typescriptRdefinedot
14+
syntax match typescriptRdefinedot contained /\./ nextgroup=typescriptRdefineMethods
1515
syntax keyword typescriptRdefineMethods contained amd
1616

1717

autoload/syntax/underscore.coffee.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
" Vim syntax file
22
" Language: underscore.js for coffee
33
" Maintainer: othree <othree@gmail.com>
4-
" Last Change: 2013/02/05
5-
" Version: 1.4.4
4+
" Last Change: 2013/04/21
5+
" Version: 1.4.4.1
66
" URL: http://underscorejs.org/
77

8-
syntax match coffeeunderscore containedin=ALLBUT,coffeeComment /\<_\>/
9-
syntax match coffeeunderscoredot containedin=ALLBUT,coffeeComment /\(\<_\.\)\@<=\h\w*/ contains=@coffee_Functions
10-
syntax match coffeeunderscoredot containedin=ALLBUT,coffeeComment /\(\<_([^)]*)\.\)\@<=\h\w*/ contains=@coffee_Functions
8+
syntax match coffeeunderscore containedin=ALLBUT,coffeeComment /\<_\>/ nextgroup=coffeeunderscoredot
9+
syntax match coffeeunderscoredot contained /\./ nextgroup=@coffee_Functions
10+
syntax match coffeeunderscoredot contained /([^)]*)\./ nextgroup=@coffee_Functions
1111

1212
syntax cluster coffee_Functions contains=coffee_collections,coffee_arrays,coffee_functions,coffee_objects,coffee_chaining
1313

autoload/syntax/underscore.javascript.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
" Vim syntax file
22
" Language: underscore.js for javascript
33
" Maintainer: othree <othree@gmail.com>
4-
" Last Change: 2013/02/05
5-
" Version: 1.4.4
4+
" Last Change: 2013/04/21
5+
" Version: 1.4.4.1
66
" URL: http://underscorejs.org/
77

8-
syntax match javascriptunderscore containedin=ALLBUT,javascriptComment /\<_\>/
9-
syntax match javascriptunderscoredot containedin=ALLBUT,javascriptComment /\(\<_\.\)\@<=\h\w*/ contains=@javascript_Functions
10-
syntax match javascriptunderscoredot containedin=ALLBUT,javascriptComment /\(\<_([^)]*)\.\)\@<=\h\w*/ contains=@javascript_Functions
8+
syntax match javascriptunderscore containedin=ALLBUT,javascriptComment /\<_\>/ nextgroup=javascriptunderscoredot
9+
syntax match javascriptunderscoredot contained /\./ nextgroup=@javascript_Functions
10+
syntax match javascriptunderscoredot contained /([^)]*)\./ nextgroup=@javascript_Functions
1111

1212
syntax cluster javascript_Functions contains=javascript_collections,javascript_arrays,javascript_functions,javascript_objects,javascript_chaining
1313

0 commit comments

Comments
 (0)