Skip to content

Commit 91688aa

Browse files
author
othree_kao
committed
underscore _ use keyword instead of match
1 parent 75a7b55 commit 91688aa

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

autoload/syntax/underscore.coffee.vim

Lines changed: 3 additions & 3 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/04/21
5-
" Version: 1.4.4.1
4+
" Last Change: 2013/04/23
5+
" Version: 1.4.4.2
66
" URL: http://underscorejs.org/
77
" LoDash: 1.2.0
88
" URL: http://lodash.com/
99

10-
syntax match coffeeunderscore containedin=ALLBUT,coffeeComment,coffeeString /\<_\>/ nextgroup=coffeeunderscoredot
10+
syntax keyword coffeeunderscore containedin=ALLBUT,coffeeComment,coffeeString _ nextgroup=coffeeunderscoredot
1111
syntax match coffeeunderscoredot contained /\./ nextgroup=@coffee_Functions
1212
syntax match coffeeunderscoredot contained /([^)]*)\./ nextgroup=@coffee_Functions
1313

autoload/syntax/underscore.javascript.vim

Lines changed: 3 additions & 3 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/04/21
5-
" Version: 1.4.4.1
4+
" Last Change: 2013/04/23
5+
" Version: 1.4.4.2
66
" URL: http://underscorejs.org/
77
" LoDash: 1.2.0
88
" URL: http://lodash.com/
99

10-
syntax match javascriptunderscore containedin=ALLBUT,javascriptComment,javascriptString /\<_\>/ nextgroup=javascriptunderscoredot
10+
syntax keyword javascriptunderscore containedin=ALLBUT,javascriptComment,javascriptString _ nextgroup=javascriptunderscoredot
1111
syntax match javascriptunderscoredot contained /\./ nextgroup=@javascript_Functions
1212
syntax match javascriptunderscoredot contained /([^)]*)\./ nextgroup=@javascript_Functions
1313

autoload/syntax/underscore.ls.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
" Vim syntax file
22
" Language: underscore.js for ls
33
" Maintainer: othree <othree@gmail.com>
4-
" Last Change: 2013/04/21
5-
" Version: 1.4.4.1
4+
" Last Change: 2013/04/23
5+
" Version: 1.4.4.2
66
" URL: http://underscorejs.org/
77
" LoDash: 1.2.0
88
" URL: http://lodash.com/
99

10-
syntax match lsunderscore containedin=ALLBUT,lsComment,lsString /\<_\>/ nextgroup=lsunderscoredot
10+
syntax keyword lsunderscore containedin=ALLBUT,lsComment,lsString _ nextgroup=lsunderscoredot
1111
syntax match lsunderscoredot contained /\./ nextgroup=@ls_Functions
1212
syntax match lsunderscoredot contained /([^)]*)\./ nextgroup=@ls_Functions
1313

autoload/syntax/underscore.typescript.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
" Vim syntax file
22
" Language: underscore.js for typescript
33
" Maintainer: othree <othree@gmail.com>
4-
" Last Change: 2013/04/21
5-
" Version: 1.4.4.1
4+
" Last Change: 2013/04/23
5+
" Version: 1.4.4.2
66
" URL: http://underscorejs.org/
77
" LoDash: 1.2.0
88
" URL: http://lodash.com/
99

10-
syntax match typescriptunderscore containedin=ALLBUT,typescriptComment,typescriptString /\<_\>/ nextgroup=typescriptunderscoredot
10+
syntax keyword typescriptunderscore containedin=ALLBUT,typescriptComment,typescriptString _ nextgroup=typescriptunderscoredot
1111
syntax match typescriptunderscoredot contained /\./ nextgroup=@typescript_Functions
1212
syntax match typescriptunderscoredot contained /([^)]*)\./ nextgroup=@typescript_Functions
1313

0 commit comments

Comments
 (0)