Skip to content

View Refactor - Syntax Highlighting Overhaul - #593

Merged
zyedidia merged 52 commits into
masterfrom
view-refactor
Mar 27, 2017
Merged

zyedidia merged 52 commits into
masterfrom
view-refactor

Conversation

@zyedidia

@zyedidia zyedidia commented Mar 21, 2017 •

Copy link
Copy Markdown
Member

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.

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.
@zyedidia
zyedidia merged commit 4cda7e2 into master Mar 27, 2017
@GeigerCounter

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants