Skip to content

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

License

Notifications You must be signed in to change notification settings

babyraging/yash

Repository files navigation

Yet Another Syntax Highlighter

This is yet another syntax highlighter for lex/yacc and flex/bison.

Features

This extension provides full syntax highlight for these languages and also for the embedded language C/C++.

This extension also supports some basic language features such as:

  • Code diagnostic
  • Auto-completion
  • Go to Definition
  • Go to Type Definition
  • Find references
  • Rename Symbol
  • Hover

Preview

Completion for lex

Completion for yacc

Diagnostic

More examples

You can find more previews here previews.

Notice

Since 1.43.0 VSCode enabled a new feature called Semantic Highlighting, this extension supports it.

By default, only the built-in themes has semantic highlighting enabled, so if you are using a 3rd party theme that doesn't support the semantic coloring yet, you have to add these lines to your settings.json file to have the feature enabled.

"editor.tokenColorCustomizations": {
	"[name of the theme]": {
		"semanticHighlighting": true
	}
}

For extra information see https://github.com/microsoft/vscode/wiki/Semantic-Highlighting-Overview.

Here is the comparison with and without semantic highlighting.

On left enabled, on right disabled

Requirements

VSCode ^1.44

Contributors

About

Yet Another Syntax Highlighter for lex/yacc & flex/bison.

Resources

License

Stars

Watchers

Forks

Packages

No packages published