Repository navigation
Sync with language-javascript - #103
Conversation
|
Remaining problems:
|
|
|
Don't know why I didn't do this the first time
Such as isAlwaysTrue = (true || false)
|
It's pretty great overall! Notice a few keywords are not highlighted near the end. |
|
Thanks - fixed! |
| 'captures': | ||
| '0': | ||
| 'name': 'variable.parameter.function.coffee' | ||
| '1': # FIXME: Doesn't work yet: the instance_variable include overrides this |
There was a problem hiding this comment.
It probably should be
{
'match': '([a-zA-Z_$][\\w$]*)(\\.\\.\\.)?'
'captures':
'1':
'name': 'variable.parameter.function.coffee'
'2':
'name': 'keyword.operator.splat.coffee'
}
{
'match': '(@(?:[a-zA-Z_$][\\w$]*)?)(\\.\\.\\.)?'
'captures':
'1':
'name': 'variable.parameter.function.readwrite.instance.coffee'
'2':
'name': 'keyword.operator.splat.coffee'
}
{
'include': '$self'
}| '2': | ||
| 'name': 'variable.other.readwrite.instance.coffee' | ||
| '3': | ||
| 'name': 'keyword.operator.assignment.coffee' |
There was a problem hiding this comment.
Bah. Looks like I'll have to update those as well.
Edit: Scratch that, just going to change these scopes back to keyword.operator.
|
It also closes #64 |
|
To be clear, this suffers from the same problems in #64 as language-javascript also can't tokenize those functions. |
|
Thanks @MaximSokolov - your fix did work! |
Until we can port over the relevant language-javascript changes to keyword matching.
Operators is still WIP. Need to extract it into its own section in the repository. Just wanted to convert it as easily as possible first. Also, started work on adding specs to cover all these changes.
…c-with-javascript
This is from language-java, which we should port to language-javascript.
|
I've been running this for a couple days and things look good to me 👍 |
console.log not hasScope(beforePrefixScopesArray, "entity.name.tag.css") and prefix.trim() is ":"^ reminder for me to fix that Edit: Fixed! deff726 |
|
for currentStack in stack by -1Edit: fixed in 55dec99 No support for index = parseInt(match[1..])Edit: I won't be adding support for splices to this PR. |
And add specs for for loops
error = new Error("Deprecated function(s) #{deprecations.map(({originName}) -> originName).join ', '}) were called.")string termination breaks somewhere in there. Edit: Fixed in 43d6b9d |
For example, when calling functions in objects or embedded strings
|
🎉 |

This is a pretty large overhaul of language-coffee-script that aims to bring it up-to-date with language-javascript. Things I've ported over include:
Fixes #18 (they should both actually be variable assignments and not functions)
Fixes #25Fixes #45
Fixes #63
Fixes #79
Fixes #88
Fixes #90
Fixes #97
Fixes #111
Closes #53
TODO:
Argument matching terminates at the end of the line instead of attempting to continue in the case of inline functions- Unfixable using regexSimilar to above, argument matching does not continue for multiline arguments, even if they're surrounded by parentheses- Unfixable using regex"test": ->)a.b?.c)console.log @)/cc @atom/feedback - if some of you could try using this branch for everyday coding, that would be great in order to spot any regressions.
/cc @esdoppio @MaximSokolov @pchaigno