comparison vendor/vim-syntax/coffee.vim @ 562:6f57f959cc0b

Update vim syntaxes.
author nanaya <me@myconan.net>
date Thu, 04 Jun 2015 18:25:29 +0900
parents 351bd965bc1f
children 0e72765944d4
comparison
equal deleted inserted replaced
561:1c47fcd75614 562:6f57f959cc0b
30 hi def link coffeeConditional Conditional 30 hi def link coffeeConditional Conditional
31 31
32 syn match coffeeException /\<\%(try\|catch\|finally\)\>/ display 32 syn match coffeeException /\<\%(try\|catch\|finally\)\>/ display
33 hi def link coffeeException Exception 33 hi def link coffeeException Exception
34 34
35 syn match coffeeKeyword /\<\%(new\|in\|of\|by\|and\|or\|not\|is\|isnt\|class\|extends\|super\|do\)\>/ 35 syn match coffeeKeyword /\<\%(new\|in\|of\|by\|and\|or\|not\|is\|isnt\|class\|extends\|super\|do\|yield\)\>/
36 \ display 36 \ display
37 " The `own` keyword is only a keyword after `for`. 37 " The `own` keyword is only a keyword after `for`.
38 syn match coffeeKeyword /\<for\s\+own\>/ contained containedin=coffeeRepeat 38 syn match coffeeKeyword /\<for\s\+own\>/ contained containedin=coffeeRepeat
39 \ display 39 \ display
40 hi def link coffeeKeyword Keyword 40 hi def link coffeeKeyword Keyword
90 syn region coffeeString start=/'/ skip=/\\\\\|\\'/ end=/'/ 90 syn region coffeeString start=/'/ skip=/\\\\\|\\'/ end=/'/
91 \ contains=@coffeeBasicString 91 \ contains=@coffeeBasicString
92 hi def link coffeeString String 92 hi def link coffeeString String
93 93
94 " A integer, including a leading plus or minus 94 " A integer, including a leading plus or minus
95 syn match coffeeNumber /\%(\i\|\$\)\@<![-+]\?\d\+\%([eE][+-]\?\d\+\)\?/ display 95 syn match coffeeNumber /\%(\i\|\$\)\@<![-+]\?\d\+\%(e[+-]\?\d\+\)\?/ display
96 " A hex, binary, or octal number 96 " A hex, binary, or octal number
97 syn match coffeeNumber /\<0[xX]\x\+\>/ display 97 syn match coffeeNumber /\<0[xX]\x\+\>/ display
98 syn match coffeeNumber /\<0[bB][01]\+\>/ display 98 syn match coffeeNumber /\<0[bB][01]\+\>/ display
99 syn match coffeeNumber /\<0[oO][0-7]\+\>/ display 99 syn match coffeeNumber /\<0[oO][0-7]\+\>/ display
100 syn match coffeeNumber /\<\%(Infinity\|NaN\)\>/ display 100 syn match coffeeNumber /\<\%(Infinity\|NaN\)\>/ display
105 \ display 105 \ display
106 hi def link coffeeFloat Float 106 hi def link coffeeFloat Float
107 107
108 " An error for reserved keywords, taken from the RESERVED array: 108 " An error for reserved keywords, taken from the RESERVED array:
109 " http://coffeescript.org/documentation/docs/lexer.html#section-67 109 " http://coffeescript.org/documentation/docs/lexer.html#section-67
110 syn match coffeeReservedError /\<\%(case\|default\|function\|var\|void\|with\|const\|let\|enum\|export\|import\|native\|__hasProp\|__extends\|__slice\|__bind\|__indexOf\|implements\|interface\|package\|private\|protected\|public\|static\|yield\)\>/ 110 syn match coffeeReservedError /\<\%(case\|default\|function\|var\|void\|with\|const\|let\|enum\|export\|import\|native\|__hasProp\|__extends\|__slice\|__bind\|__indexOf\|implements\|interface\|package\|private\|protected\|public\|static\)\>/
111 \ display 111 \ display
112 hi def link coffeeReservedError Error 112 hi def link coffeeReservedError Error
113 113
114 " A normal object assignment 114 " A normal object assignment
115 syn match coffeeObjAssign /@\?\%(\I\|\$\)\%(\i\|\$\)*\s*\ze::\@!/ contains=@coffeeIdentifier display 115 syn match coffeeObjAssign /@\?\%(\I\|\$\)\%(\i\|\$\)*\s*\ze::\@!/ contains=@coffeeIdentifier display