WeSearch

Microsoft Edit 2.0.0 – A compiler for syntax highlighting

·5 min read · 0 reactions · 0 comments · 1 view
Microsoft Edit 2.0.0 – A compiler for syntax highlighting

⚠️ If you're a package maintainer, please read the last section at the end. Syntax Highlighting Edit v2 adds the Lightweight Syntax Highlighter. It has a ~40kB footprint for a dozen languages plus ...

Original article
GitHub
Read full at GitHub →
Full article excerpt tap to expand

microsoft / edit Public Notifications You must be signed in to change notification settings Fork 660 Star 13.8k Code Issues 123 Pull requests 26 Discussions Actions Projects Models Security and quality 0 Insights Additional navigation options Code Issues Pull requests Discussions Actions Projects Models Security and quality Insights Releases v2.0.0 2.0.0 - A compiler for syntax highlighting! Latest Latest Compare Choose a tag to compare Sorry, something went wrong. Filter Loading Sorry, something went wrong. Uh oh! There was an error while loading. Please reload this page. No results found View all tags lhecker released this 28 Apr 16:03 v2.0.0 d3f8697 This commit was created on GitHub.com and signed with GitHub’s verified signature. GPG key ID: B5690EEEBB952194 Verified Learn about vigilant mode. ⚠️ If you're a package maintainer, please read the last section at the end. Syntax Highlighting Edit v2 adds the Lightweight Syntax Highlighter. It has a ~40kB footprint for a dozen languages plus runtime, barely grows with each language added, and runs at >100MB/s. The highlighter is based on a simple programming language that combines regular expressions with explicit control flow. It's designed such that the runtime can be easily ported to other languages, including JavaScript. The list of languages will surely grow over time, and contributions for widely used languages are very welcome. If you're an experienced compiler developer, we'd greatly appreciate any advice and contributions to the LSH compiler. If you're interested in ports of the runtime, please let us know! See you in v3, with the introduction of a tiny CSS parser for UI theming. Changes Syntax highlighting (#753, #776, #777, #624, #795)The whole LSH stack: compiler, runtime, integration, and initial language definitions. See above.For path matching, we've written our own glob matcher (#743). Preliminary support for settings.json (#742, #779)For now, this is limited to files.associations, which lets you map file paths and extensions to languages for syntax highlighting. I expect v3 to be centered around configurability. Find & Replace now supports capture groups (#222) (thanks @viyic!)You can use $1, $2, etc. in the replacement string when regex mode is on. You can move lines with Alt+Up/Down (#230) (thanks @juemrami!) Tab and Shift+Tab indent and unindent multiple lines at once (#245) (thanks @liltrendi!) Whitespace inside selections is now visible (#397) (thanks @pheonick!) Pressing Ctrl+L selects the entire current line (#541) (thanks @recently-avoid-dyin!) Opening a directory via the CLI drops you into the file picker (#577) (thanks @four-poetic-drew!) Unsaved work is indicated with a ● in the terminal title (#523) (thanks @adamjoer!) The file picker now uses natural sort for filenames (#763)file2.txt sorts before file10.txt, as it should. Bug Fixes Invalid CLI arguments are properly rejected instead of silently ignored (#503) (thanks @spinualexandru!) Fixed random Unicode text input corruption on *nix (#520) (thanks @manitofigh!) Fixed a file truncation issue when writing Unicode files (#548) Fixed undo grouping when backspacing (#590) Fixed the alpha blending formula for colors (#594)We were using srgb_to_linear on premultiplied colors, which is no bueno. Scrolling and clicking have gone through a divorce (#603, #812, #819)No more phantom selections when you just wanted to scroll. Fixed UI colors with Terminal.app's new "Clear Dark" theme (#728) Fixed multiple issues…

This excerpt is published under fair use for community discussion. Read the full article at GitHub.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Email

Discussion

0 comments

More from GitHub