Conversation
Collaborator
Author
|
Also, I may need to rebase master back into develop, and fix some conflicts... |
this makes almost no difference to the indenter's effects. I found that our most time consuming indent operation is from the 'skip_expr' which looks at syntax items, removing 'regex' from it seems to help a bit but it still will be slow on long lines
the search pair function almost stalls my decently powerful macbook pro on really long lines, could be annoying because of minification etc.this function just makes it backwards compatible in old vim versions or builds without this feature
* prevent repeated calls of searchpair
```
var magicWords = ['abracadabra', 'gesundheit', 'ventrilo'],
spells = {
'fireball': function() {
setOnFire()
},
'water': function() {
putOut()
}
},
a = 1,
b = 'abc',
etc, somethingElse
someFunc(param1, param2,
param3, param4)
```
at the line which starts with a curly brace followed by a comment this was added for traversing the comma less property lines, however this only needs to be called once.this improves performance when using the endline operator style
an operator would previously create an unnecessary indent when following a line which was the first of a list of block enclosed items, e.g. a array, function call, or object
before:
```
vardefaultModules = {
'http:': http
,'https:': https
}
```
after:
```
vardefaultModules = {
'http:': http
,'https:': https
}
```
looking at how the line found with searchpair starts
after:
```
var protocol = defaultModules = {
'http:': http
,'https:': https
}
,htpModles = slf.htpModules || {}
console.log()
Currently in a class definition, you can actually have a method called `get`. However with our match of `get` `set` and `static` as keywords, we broke the ability to properly support those method names. This should fix those cases.
* working detection of object properties the previous method is likely slower and doesn't really work * fun args supported also add support for func args
i don't know if this actually makes very much sense ``` 10 ..toString() ``` is invalid
* Re-organized a couple things * Added some TODO comments to remind myself what needs to be done
I truly believe this has no place in a JS syntax file...
* Checked all aspects of jsExpression - In preparation for it to be properly used * Code style tweaks - contained is such an important option, ensuring it's always first
With the refactoring of jsExpression, I was able to add a ton of finer granularity to various new region types. Current new regions: * jsObject * jsArray * jsParenIfElse * jsParenRepeat * jsParenSwitch * jsClassBlock * jsBlock * jsSwitchBlock * jsTernaryIf
I think this is actually in a really good place. It seems to work well in my test phaser.js file
Trying to make argument order more uniform
I don't think it needs to be a region, and infact incurs some annoying complexity if so
There is one caveat right now, to properly support it, we sort of require semicolons. Not sure if this is something people will be happy with or not...
Because it's not ALWAYS an array
We can use this as a test. By unlinking it, it shouldn't ever have any color theme associated with it, and if people complain, they can still highlight it. Otherwise if we hear no complaints after a while, we just pull it completely.
It's now technically a statement
* Fixes to jsSpreadOperator * Added fold to jsObject * Organized fold/extend arguments better
This fix may actually work out for us when using jsClassValue. There still are some cases where it could be tripped up, for example on multi line equations and stuff, but for the most part I think it should do the trick.
This should help with errant detection in files that use Flow. It also makes things safer so when typing out a ternary expression, you don't get weird flickering of major syntax region changes.
Collaborator
Author
|
So I can do the rebase, but it will require a force push to How do you all feel about this? |
Collaborator
|
I don't think thats a problem, i'm not too concerned with a perfect commit history |
Collaborator
Author
|
The only issue I see is people who might be tracking develop right now, and use a plugin manager. If I do a force push, then those people will have their develop branches freak out. |
Collaborator
Author
|
Another solution would be to still merge this in manually, but then create a new branch off of master to begin dev work on. But then that means people will stop getting updates on |
Collaborator
|
a rebase sounds cleaner, most people will want to be on master now anyway |
Versions should be tracked on git anyways
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Will need a version bump, me thinks.