|
| 1 | +" Vim syntax file |
| 2 | +" Language: prelude.ls for javascript |
| 3 | +" Maintainer: othree <othree@gmail.com> |
| 4 | +" Last Change: 2013/07/15 |
| 5 | +" Version: 1.3.9 |
| 6 | +" URL: http://sugarjs.com/ |
| 7 | +" http://sugarjs.com/api |
| 8 | + |
| 9 | +syntax cluster javascriptSFunctions contains=javascriptSFunction |
| 10 | + |
| 11 | +" String |
| 12 | +syntax keyword javascriptSFunction contained add assign at camelize capitalize chars codes compact dasherize decodeBase64 |
| 13 | +syntax keyword javascriptSFunction contained each encodeBase64 endsWith escapeHTML escapeRegExp escapeURL first from hankaku has |
| 14 | +syntax keyword javascriptSFunction contained hasArabic hasCyrillic hasGreek hasHangul hasHan hasKanji hasHebrew hasHiragana hasKana hasKatakana |
| 15 | +syntax keyword javascriptSFunction contained hasLatin hasThai hasDevanagari hiragana humanize insert isBlank isArabic isCyrillic isGreek |
| 16 | +syntax keyword javascriptSFunction contained isHangul isHan isKanji isHebrew isHiragana isKana isKatakana isKatakana isThai isDevanagari |
| 17 | +syntax keyword javascriptSFunction contained katakana last lines normalize pad padLeft padRight paragraphs parameterize plualize |
| 18 | +syntax keyword javascriptSFunction contained remove removeTags repeat reverse shift singularize spacify startsWith stripTags titleize |
| 19 | +syntax keyword javascriptSFunction contained to toNumber trim trimLeft trimRight truncate underscore unescapeHTML unescapeURL words |
| 20 | +syntax keyword javascriptSFunction contained zenkaku |
| 21 | + |
| 22 | + |
| 23 | +" Define the default highlighting. |
| 24 | +" For version 5.7 and earlier: only when not done already |
| 25 | +" For version 5.8 and later: only when an item doesn't have highlighting yet |
| 26 | +if version >= 508 || !exists("did_prelude_javascript_syntax_inits") |
| 27 | + if version < 508 |
| 28 | + let did_prelude_javascript_syntax_inits = 1 |
| 29 | + command -nargs=+ HiLink hi link <args> |
| 30 | + else |
| 31 | + command -nargs=+ HiLink hi def link <args> |
| 32 | + endif |
| 33 | + |
| 34 | + HiLink javascriptSFunction PreProc |
| 35 | + |
| 36 | + |
| 37 | + delcommand HiLink |
| 38 | +endif |
0 commit comments