From 22d3238b2accde3823a2be88060b4169acf0352e Mon Sep 17 00:00:00 2001 From: Matt Lyon Date: Wed, 6 Jan 2010 00:03:11 -0800 Subject: [PATCH] if we escape the close-brackets, it won't think single-line objects need folding --- .../Syntaxes/CoffeeScript.tmLanguage | 354 +----------------- 1 file changed, 11 insertions(+), 343 deletions(-) diff --git a/lib/coffee_script/CoffeeScript.tmbundle/Syntaxes/CoffeeScript.tmLanguage b/lib/coffee_script/CoffeeScript.tmbundle/Syntaxes/CoffeeScript.tmLanguage index f3659881..a84b6285 100644 --- a/lib/coffee_script/CoffeeScript.tmbundle/Syntaxes/CoffeeScript.tmLanguage +++ b/lib/coffee_script/CoffeeScript.tmbundle/Syntaxes/CoffeeScript.tmLanguage @@ -2,349 +2,17 @@ - comment - CoffeeScript Syntax: version 1 - fileTypes - - coffee - - name - CoffeeScript - foldingStartMarker - ^.*: \{[^}]* - foldingStopMarker - ^\s*\} - patterns - - - captures - - 1 - - name - entity.name.function.coffee - - 2 - - name - keyword.operator.coffee - - 3 - - name - variable.parameter.function.coffee - - 4 - - name - storage.type.function.coffee - - - comment - match stuff like: funcName: => … - match - ([a-zA-Z0-9_?.$*]*)\s*(=|:)\s*([\w,\s]*?)\s*(=>) - name - meta.function.coffee - - - captures - - 1 - - name - variable.parameter.function.coffee - - 2 - - name - storage.type.function.coffee - - - comment - match stuff like: a => … - match - ([a-zA-Z0-9_?., $*]*)\s*(=>) - name - meta.inline.function.coffee - - - captures - - 1 - - name - keyword.operator.new.coffee - - 2 - - name - entity.name.type.instance.coffee - - - match - (new)\s+(\w+(?:\.\w*)?) - name - meta.class.instance.constructor - - - match - \b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\.[0-9]+)?(e[+\-]?[0-9]+)?))\b - name - constant.numeric.coffee - - - begin - ' - beginCaptures - - 0 - - name - punctuation.definition.string.begin.coffee - - - end - ' - endCaptures - - 0 - - name - punctuation.definition.string.end.coffee - - - name - string.quoted.single.coffee - patterns - - - match - \\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.) - name - constant.character.escape.coffee - - - - - begin - " - beginCaptures - - 0 - - name - punctuation.definition.string.begin.coffee - - - end - " - endCaptures - - 0 - - name - punctuation.definition.string.end.coffee - - - name - string.quoted.double.coffee - patterns - - - match - \\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.) - name - constant.character.escape.coffee - - - - - begin - ` - beginCaptures - - 0 - - name - punctuation.definition.string.begin.coffee - - - end - ` - endCaptures - - 0 - - name - punctuation.definition.string.end.coffee - - - name - string.quoted.script.coffee - patterns - - - match - \\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.) - name - constant.character.escape.coffee - - - - - captures - - 1 - - name - punctuation.definition.comment.coffee - - - match - (#).*$\n? - name - comment.line.coffee - - - match - \b(break|by|catch|continue|else|finally|for|if|return|switch|then|throw|try|unless|when|while)\b - name - keyword.control.coffee - - - match - \b([a-zA-Z$_]\w*)(\:)\s - name - variable.assignment.coffee - captures - - 1 - - name - entity.name.function.coffee - - 2 - - name - keyword.operator.coffee - - - - - match - \b(true|on|yes)\b - name - constant.language.boolean.true.coffee - - - match - \b(false|off|no)\b - name - constant.language.boolean.false.coffee - - - match - \bnull\b - name - constant.language.null.coffee - - - match - \b(super|this|extends)\b - name - variable.language.coffee - - - match - \b(debugger|\\)\b - name - keyword.other.coffee - - - match - !|\$|%|&|\*|\/|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\?|\|\||\:|\*=|(?<!\()/=|%=|\+=|\-=|&=|\^=|\b(in|instanceof|new|delete|typeof|and|or|is|isnt|not)\b - name - keyword.operator.coffee - - - match - \b(Infinity|NaN|undefined)\b - name - constant.language.coffee - - - begin - (?<=[=(:]|^|return)\s*(/)(?![/*+{}?]) - beginCaptures - - 1 - - name - punctuation.definition.string.begin.coffee - - - end - (/)[igm]* - endCaptures - - 1 - - name - punctuation.definition.string.end.coffee - - - name - string.regexp.coffee - patterns - - - match - \\. - name - constant.character.escape.coffee - - - - - match - \; - name - punctuation.terminator.statement.coffee - - - match - ,[ |\t]* - name - meta.delimiter.object.comma.coffee - - - match - \. - name - meta.delimiter.method.period.coffee - - - match - \{|\} - name - meta.brace.curly.coffee - - - match - \(|\) - name - meta.brace.round.coffee - - - match - \[|\] - name - meta.brace.square.coffee - - - scopeName - source.coffee + changed + + foldingStartMarker + ^.*[:=] \{[^\}]*$ + foldingStopMarker + ^\s*\} + + deleted + + isDelta + uuid 5B520980-A7D5-4E10-8582-1A4C889A8DE5