You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
FYI, when using a single frontslash in a line, the highlighter assumes it's a regex string, which breaks syntax highlighting basically all the way through my coffeescript file. This breaks in TM2, but seems to work in TM1. For example, a line such as:
x = ((width-height)/2)
will assume that EVERYTHING until the end of the file is a regex expression, and thus no syntax highlighting. Pretty useless. The cultprit is "string.regexp.coffee". Removing this from the CoffeeScript language grammers fixes my problem (although now it doesn't highlight regex strings properly):
{
name = 'string.regexp.coffee';
begin = '/(?![\s=/*+{}?])';
end = '(/)[igmy]{0,4}(?![a-zA-Z0-9])';
beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.coffee'; }; };
endCaptures = { 1 = { name = 'punctuation.definition.string.end.coffee'; }; };
patterns = ( { include = 'source.js.regexp'; } );
},
Thanks!
The text was updated successfully, but these errors were encountered:
Hi all,
FYI, when using a single frontslash in a line, the highlighter assumes it's a regex string, which breaks syntax highlighting basically all the way through my coffeescript file. This breaks in TM2, but seems to work in TM1. For example, a line such as:
x = ((width-height)/2)
will assume that EVERYTHING until the end of the file is a regex expression, and thus no syntax highlighting. Pretty useless. The cultprit is "string.regexp.coffee". Removing this from the CoffeeScript language grammers fixes my problem (although now it doesn't highlight regex strings properly):
{
name = 'string.regexp.coffee';
begin = '/(?![\s=/*+{}?])';
end = '(/)[igmy]{0,4}(?![a-zA-Z0-9])';
beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.coffee'; }; };
endCaptures = { 1 = { name = 'punctuation.definition.string.end.coffee'; }; };
patterns = ( { include = 'source.js.regexp'; } );
},
Thanks!
The text was updated successfully, but these errors were encountered: