-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathunderscore.javascript.vim
More file actions
156 lines (141 loc) · 8.56 KB
/
underscore.javascript.vim
File metadata and controls
156 lines (141 loc) · 8.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
" Vim syntax file
" Language: underscore.js for javascript
" Maintainer: othree <othree@gmail.com>
" Last Change: 2016/01/18
" Version: 1.7.0
" URL: http://underscorejs.org/
" LoDash: 4.0.0
" URL: http://lodash.com/
syntax keyword javascriptunderscore _ containedin=ALLBUT,javascriptComment,javascriptLineComment,javascriptRegexpString,javascriptString,javascriptTemplate,javascriptTemplateSubstitution
" syntax match javascriptunderscoredot contained /\./ nextgroup=@javascript_Functions
" syntax match javascriptunderscoredot contained /([^)]*)\./ nextgroup=@javascript_Functions
syntax cluster javascript_Functions contains=javascript_collections,javascript_strings,javascript_arrays,javascript_functions,javascript_objects,javascript_chaining,javascript_utility,javascript_lodash,javascript_math,javascript_number
syntax match javascript_collections contained /contains/
syntax keyword javascript_collections contained include
syntax keyword javascript_collections contained each map reduce reduceRight find filter where findWhere
syntax keyword javascript_collections contained reject every some invoke pluck max min sortBy
syntax keyword javascript_collections contained groupBy indexBy countBy shuffle toArray size
syntax keyword javascript_collections contained partition iteratee
" lodash 3.0.0
syntax keyword javascript_collections contained partition sortByAll includes callback
" lodash 4.0.0
syntax keyword javascript_collections contained flatMap commit next plant reverse toJSON valueOf
syntax keyword javascript_collections contained forEachRight invokeMap keyBy orderBy sample sampleSize
" lodash 4.7.0
syntax keyword javascript_collections contained flatMapDeep flatMapDepth
" lodash 3.0.0
syntax keyword javascript_strings contained camelCase capitalize deburr endsWith escapeRegExp
syntax keyword javascript_strings contained kebabCase pad padLeft padRight repeat snakeCase
syntax keyword javascript_strings contained startsWith trim trimLeft trimRight trunc words
" lodash 4.0.0
syntax keyword javascript_strings contained lowerCase lowerFirst padEnd padStart replace startCase
syntax keyword javascript_strings contained startWith toLower toUpper trimEnd trimStart truncate upperCase
syntax keyword javascript_strings contained upperFirst
syntax keyword javascript_arrays contained first initial last rest compact flatten without union
syntax keyword javascript_arrays contained intersection difference uniq zip object indextOf
syntax keyword javascript_arrays contained lastIndexOf sortedIndex range
" lodash 3.0.0
syntax keyword javascript_arrays contained chunk dropRight dropRightWhile dropWhile flattenDeep
syntax keyword javascript_arrays contained pullAt slice sortedLastIndex takeRight takeRightWhile
syntax keyword javascript_arrays contained takeWhile
" lodash 4.0.0
syntax keyword javascript_arrays contained concat differenceBy differenceWith drop fill findLastIndex
syntax keyword javascript_arrays contained fromPairs head indexOf intersection intersectionBy intersectionWith
syntax keyword javascript_arrays contained join pull pullAll pullAllBy remove slice sortedIndexBy sortedIndexOf
syntax keyword javascript_arrays contained sortedLastIndexBy sortedLastIndexOf sortedUniq sortedUniqBy tail
syntax keyword javascript_arrays contained take takeRightWhile unionBy unionWith uniqBy uniqWith unzipWith
syntax keyword javascript_arrays contained xorBy xorWith zipObject zipWith
" lodash 4.1.0
syntax keyword javascript_arrays contained zipObjectDeep
" lodash 4.4.0
syntax keyword javascript_arrays contained flattenDepth
" lodash 4.6.0
syntax keyword javascript_arrays contained pullAllWith
" lodash 4.11.0
syntax keyword javascript_arrays contained nth
syntax keyword javascript_functions contained bind bindAll partial memoize delay throttle debounce
syntax keyword javascript_functions contained once after before wrap negate compose flow flowRight
" lodash 3.0.0
syntax keyword javascript_functions contained ary before curryRight negate rearg
syntax keyword javascript_functions contained backflow compose partial cancel
" lodash 4.0.0
syntax keyword javascript_functions contained curry defer eachRight findLast flip negate overArgs rest spread unary
syntax keyword javascript_objects contained keys values pairs invert functions extend pick omit
syntax keyword javascript_objects contained defaults clone tap has isEqual isEmpty isElement isArray
syntax keyword javascript_objects contained isObject isArguments isFunction isString isNumber
syntax keyword javascript_objects contained isFinite isBoolean isDate isRegExp isNaN isNull
syntax keyword javascript_objects contained isUndefined property matches
" lodash 3.0.0
syntax keyword javascript_objects contained keysIn valuesIn assign get set
syntax keyword javascript_objects contained mapKeys
" lodash 4.0.0
syntax keyword javascript_objects contained assignIn assignInWith assignWith defaultsDeep extendWith
syntax keyword javascript_objects contained findKey findLastKey forIn forInRight forOwn forOwnRight
syntax keyword javascript_objects contained functionsIn hasIn mergeWith omitBy pickBy setWith toPairs
syntax keyword javascript_objects contained toPairsIn transform unset
" lodash 4.1.0
syntax keyword javascript_objects contained invertBy
" lodash 4.6.0
syntax keyword javascript_objects contained updateWith update
syntax keyword javascript_utility contained noConflict identify times random mixin uniqueId
syntax keyword javascript_utility contained escape unescape result template iteratee noop
" lodash 3.0.0
syntax keyword javascript_utility contained attempt matches matchesProperty propertyOf constant now
" lodash 4.0.0
syntax keyword javascript_utility contained cond conforms flow identity matches method methodOf nthArg
syntax keyword javascript_utility contained over overEvery overSome rangeRight times toPath uniqueId
" lodash 4.13.0
syntax keyword javascript_utility contained stubTrue stubString stubObject stubFalse stubArray
" lodash 4.14.0
syntax keyword javascript_utility contained defaultTo
syntax keyword javascript_chaining contained chain value thru
syntax keyword javascript_lodash contained at bindKey cloneDeep createCallback findIndex findKey
syntax keyword javascript_lodash contained forEach forIn forOwn isPlainObject merge parseInt partial
syntax keyword javascript_lodash contained partialRight runInContext support unzip where
syntax keyword javascript_lodash contained capitalize match slice trim trimLeft trimRight
syntax keyword javascript_lodash contained constant mapValues now property xor
syntax keyword javascript_lodash contained create noop transform
" lodash 3.0.0
syntax keyword javascript_lodash contained isError isMatch isNative isTypedArray toPlainObject
" lodash 4.0.0
syntax keyword javascript_lodash contained clone cloneDeepWith cloneWith eq gt gte isArrayLike isArrayLikeObject
syntax keyword javascript_lodash contained isEqualWith isInteger isLength isMatchWith isNil isObjectLike isSafeInteger
syntax keyword javascript_lodash contained isSymbol lt lte toInteger toLength toNumber toSafeInteger toString
syntax keyword javascript_lodash contained templateSettings evaluate imports interpolate varible
syntax keyword javascript_lodash contained VERSION
" lodash 4.3.0
syntax keyword javascript_arrays contained isArrayBuffer isBuffer isMap isSet isWeakMap isWeakSet
" lodash 4.4.0
syntax keyword javascript_arrays contained castArray
" lodash 4.12.0
syntax keyword javascript_arrays contained toFinite
" lodash 4.14.0
syntax keyword javascript_arrays contained conformsTo
" lodash 4.0.0
syntax keyword javascript_math contained add ceil floor max maxBy mean min minBy round subtract sum sumBy
" lodash 4.7.0
syntax keyword javascript_math contained divide multiply meanBy
syntax keyword javascript_number contained clamp inRange
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_underscore_javascript_syntax_inits")
if version < 508
let did_underscore_javascript_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink javascriptunderscore Constant
HiLink javascript_collections PreProc
HiLink javascript_strings PreProc
HiLink javascript_arrays PreProc
HiLink javascript_functions PreProc
HiLink javascript_objects PreProc
HiLink javascript_utility PreProc
HiLink javascript_chaining PreProc
HiLink javascript_lodash PreProc
HiLink javascript_math PreProc
HiLink javascript_number PreProc
delcommand HiLink
endif