Repository navigation
View Refactor - Syntax Highlighting Overhaul - #593
Merged
Merged
Conversation
This is the beginning of the view refactor (#515). It's just the start and is untested for now.
Syntax highlighting is still not supported when using the new cellview.
This changes all the syntax files in the runtime directory and also changes how syntax highlighting is done from inside micro.
Use the 'regexp2' library for lookahead and lookbehind in region start and end regular expressions to support things like closing quotes that aren't preceded by backslashes.
Contributor
|
@zyedidia So it's finally live? Do I now push syntax highlighting to the master? Also, I just realized the amount of headaches this is going to cause fixing merge conflicts with my upcoming pr. |
This was referenced Mar 27, 2017
Closed
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.
This is the new syntax highlighting overhaul and view refactor (see #515). The highlighting engine should be faster and more efficient and this will also fix some syntax highlighting bugs (#217, #374).
Syntax files will now support "regions" and will also be able to include the rules of other filetypes in their regions.
Syntax files are also now yaml files so they are a bit more structured than before. There is a tool to convert syntax files of the old type into the new type (and they should work just fine).
All the old syntax files have been converted to the new yaml filetype and some of them have been further improved using regions.
The view itself has also gone through a refactor which should speed things up. I think the view could be refactored further but I'll save that for another time.
This isn't quite complete yet (and has been in the works for awhile) -- the only bug I'm currently aware of has to do with escaped quotes in strings breaking the highlighting. I think this can be fixed pretty easily though. EDIT: This has been fixed.
There are also a ton of merge conflicts to work out.