Skip to content

Commit 6fd3454

Browse files
author
othree_kao
committed
lo-dash for all filetype
1 parent 9dd267b commit 6fd3454

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

autoload/syntax/underscore.coffee.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
" Last Change: 2013/04/21
55
" Version: 1.4.4.1
66
" URL: http://underscorejs.org/
7+
" LoDash: 1.2.0
8+
" URL: http://lodash.com/
79

810
syntax match coffeeunderscore containedin=ALLBUT,coffeeComment /\<_\>/ nextgroup=coffeeunderscoredot
911
syntax match coffeeunderscoredot contained /\./ nextgroup=@coffee_Functions
1012
syntax match coffeeunderscoredot contained /([^)]*)\./ nextgroup=@coffee_Functions
1113

12-
syntax cluster coffee_Functions contains=coffee_collections,coffee_arrays,coffee_functions,coffee_objects,coffee_chaining
14+
syntax cluster coffee_Functions contains=coffee_collections,coffee_arrays,coffee_functions,coffee_objects,coffee_chaining,coffee_lodash
1315

1416
syntax match coffee_collections contained /contains/
1517
syntax keyword coffee_collections contained each map reduce reduceRight find filter where findWhere
@@ -29,6 +31,10 @@ syntax keyword coffee_utility contained noConflict identify times random mixin u
2931
syntax keyword coffee_utility contained escape unescape result template
3032
syntax keyword coffee_chaining contained chain value
3133

34+
syntax keyword coffee_lodash contained at bindKey cloneDeep createCallback findIndex findKey
35+
syntax keyword coffee_lodash contained forEach forIn forOwn isPlainObject merge parseInt partial
36+
syntax keyword coffee_lodash contained partialRight runInContext support unzip where
37+
3238

3339
" Define the default highlighting.
3440
" For version 5.7 and earlier: only when not done already

autoload/syntax/underscore.ls.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
" Last Change: 2013/04/21
55
" Version: 1.4.4.1
66
" URL: http://underscorejs.org/
7+
" LoDash: 1.2.0
8+
" URL: http://lodash.com/
79

810
syntax match lsunderscore containedin=ALLBUT,lsComment /\<_\>/ nextgroup=lsunderscoredot
911
syntax match lsunderscoredot contained /\./ nextgroup=@ls_Functions
1012
syntax match lsunderscoredot contained /([^)]*)\./ nextgroup=@ls_Functions
1113

12-
syntax cluster ls_Functions contains=ls_collections,ls_arrays,ls_functions,ls_objects,ls_chaining
14+
syntax cluster ls_Functions contains=ls_collections,ls_arrays,ls_functions,ls_objects,ls_chaining,ls_lodash
1315

1416
syntax match ls_collections contained /contains/
1517
syntax keyword ls_collections contained each map reduce reduceRight find filter where findWhere
@@ -29,6 +31,10 @@ syntax keyword ls_utility contained noConflict identify times random mixin uniqu
2931
syntax keyword ls_utility contained escape unescape result template
3032
syntax keyword ls_chaining contained chain value
3133

34+
syntax keyword ls_lodash contained at bindKey cloneDeep createCallback findIndex findKey
35+
syntax keyword ls_lodash contained forEach forIn forOwn isPlainObject merge parseInt partial
36+
syntax keyword ls_lodash contained partialRight runInContext support unzip where
37+
3238

3339
" Define the default highlighting.
3440
" For version 5.7 and earlier: only when not done already

autoload/syntax/underscore.typescript.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
" Last Change: 2013/04/21
55
" Version: 1.4.4.1
66
" URL: http://underscorejs.org/
7+
" LoDash: 1.2.0
8+
" URL: http://lodash.com/
79

810
syntax match typescriptunderscore containedin=ALLBUT,typescriptComment /\<_\>/ nextgroup=typescriptunderscoredot
911
syntax match typescriptunderscoredot contained /\./ nextgroup=@typescript_Functions
1012
syntax match typescriptunderscoredot contained /([^)]*)\./ nextgroup=@typescript_Functions
1113

12-
syntax cluster typescript_Functions contains=typescript_collections,typescript_arrays,typescript_functions,typescript_objects,typescript_chaining
14+
syntax cluster typescript_Functions contains=typescript_collections,typescript_arrays,typescript_functions,typescript_objects,typescript_chaining,typescript_lodash
1315

1416
syntax match typescript_collections contained /contains/
1517
syntax keyword typescript_collections contained each map reduce reduceRight find filter where findWhere
@@ -29,6 +31,10 @@ syntax keyword typescript_utility contained noConflict identify times random mix
2931
syntax keyword typescript_utility contained escape unescape result template
3032
syntax keyword typescript_chaining contained chain value
3133

34+
syntax keyword typescript_lodash contained at bindKey cloneDeep createCallback findIndex findKey
35+
syntax keyword typescript_lodash contained forEach forIn forOwn isPlainObject merge parseInt partial
36+
syntax keyword typescript_lodash contained partialRight runInContext support unzip where
37+
3238

3339
" Define the default highlighting.
3440
" For version 5.7 and earlier: only when not done already

0 commit comments

Comments
 (0)