diff --git a/Syntaxes/CoffeeScript (Literate).tmLanguage b/Syntaxes/CoffeeScript (Literate).tmLanguage index 9e96cd8..b44d97e 100644 --- a/Syntaxes/CoffeeScript (Literate).tmLanguage +++ b/Syntaxes/CoffeeScript (Literate).tmLanguage @@ -22,6 +22,23 @@ |^\s*--> |(^|\s)\} ) + injections + + string.regexp.block.coffee + + patterns + + + include + #interpolated_coffee + + + include + #embedded_comment + + + + name CoffeeScript (Literate) patterns @@ -728,27 +745,64 @@ begin /{3} + beginCaptures + + 0 + + name + punctuation.definition.string.begin.coffee + + end - /{3}[imgy]{0,4} + (/{3})[imgy]{0,4} + endCaptures + + 1 + + name + punctuation.definition.string.end.coffee + + name - string.regexp.coffee + string.regexp.block.coffee patterns include - #interpolated_coffee - - - include - #embedded_comment + source.js.regexp - match - /(?![\s=/*+{}?]).*?[^\\]/[igmy]{0,4}(?![a-zA-Z0-9]) + begin + /(?![\s=/*+{}?]) + beginCaptures + + 0 + + name + punctuation.definition.string.begin.coffee + + + end + (/)[igmy]*(?![a-zA-Z0-9]) + endCaptures + + 1 + + name + punctuation.definition.string.end.coffee + + name string.regexp.coffee + patterns + + + include + source.js.regexp + + match diff --git a/Syntaxes/CoffeeScript.tmLanguage b/Syntaxes/CoffeeScript.tmLanguage index 0556c96..9bd3e3c 100644 --- a/Syntaxes/CoffeeScript.tmLanguage +++ b/Syntaxes/CoffeeScript.tmLanguage @@ -16,6 +16,23 @@ ^\s*class\s+\S.*$|.*(->|=>)\s*$|.*[\[{]\s*$ foldingStopMarker ^\s*$|^\s*[}\]]\s*$ + injections + + string.regexp.block.coffee + + patterns + + + include + #interpolated_coffee + + + include + #embedded_comment + + + + keyEquivalent ^~C name @@ -198,27 +215,64 @@ begin /{3} + beginCaptures + + 0 + + name + punctuation.definition.string.begin.coffee + + end - /{3}[imgy]{0,4} + (/{3})[imgy]{0,4} + endCaptures + + 1 + + name + punctuation.definition.string.end.coffee + + name - string.regexp.coffee + string.regexp.block.coffee patterns include - #interpolated_coffee - - - include - #embedded_comment + source.js.regexp - match - /(?![\s=/*+{}?]).*?[^\\]/[igmy]{0,4}(?![a-zA-Z0-9]) + begin + /(?![\s=/*+{}?]) + beginCaptures + + 0 + + name + punctuation.definition.string.begin.coffee + + + end + (/)[igmy]{0,4}(?![a-zA-Z0-9]) + endCaptures + + 1 + + name + punctuation.definition.string.end.coffee + + name string.regexp.coffee + patterns + + + include + source.js.regexp + + match