vscode-oniguruma
oniguruma
Our great sponsors
vscode-oniguruma | oniguruma | |
---|---|---|
3 | 2 | |
105 | 2,197 | |
5.7% | - | |
4.1 | 6.8 | |
27 days ago | 22 days ago | |
TypeScript | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vscode-oniguruma
-
Building a syntax highlighting extension for VS Code
Luckily, there is a project that has fitted my needs perfectly: vscode-grammar-test. It’s a command line tool that builds on the VS Code regex engine and grammar file parser and allows to run unit tests directly against a given grammar file.
-
Dark mode with Shiki and Code Hike
Shiki does this because the underlying library vscode-textmate or vscode-oniguruma returns black if the value is not a valid color. This explains why Code Hike uses blackish color codes instead of variables. But what if we write a variable directly into the theme instead of the color code.
-
Developer Diaries: How We Built a Better Browser-Based IDE with Monaco
More specifically, we’re using [vscode-oniguruma](https://github.com/microsoft/vscode-oniguruma), which is made by Microsoft. But this introduced yet another problem: Integrating TextMate into Monaco typically requires hacks of some kind, and introduces some flaws into the experience.
oniguruma
-
Building a syntax highlighting extension for VS Code
As a ruby developer, I was happy to find that VS Code / TextMate grammar files use the same regular expression engine called Oniguruma as ruby itself. Thus, I could be sure that when trying my regular expressions in my favorite online regex tool, rubular.com, there would be no inconsistencies due to the engine inner workings.
-
Developer Diaries: How We Built a Better Browser-Based IDE with Monaco
However, parsing these files requires a C library called Oniguruma to parse and execute these files. Because this library does not run in a pure JavaScript environment – which was a requirement for Monaco historically due to browser support – Monaco ships out-of-the-box with a different grammar language.
What are some alternatives?
vscode-textmate - A library that helps tokenize text using Text Mate grammars.
Onigmo - Onigmo is a regular expressions library forked from Oniguruma.
lighter - The syntax highlighter used by Code Hike.
RegEx101 - This repository is currently only used for issue tracking for www.regex101.com
shiki - A beautiful yet powerful syntax highlighter
Melon - A generic cross-platform C library that includes many commonly used components and frameworks, and a new scripting language interpreter. It currently supports C99 and Aspect-Oriented Programming (AOP).
codehike - Marvellous code walkthroughs
obs-studio - OBS Studio - Free and open source software for live streaming and screen recording
convert-sh-theme
RegExtract - Clean & simple idiomatic C# RegEx-based line parser that emits strongly typed results.