Skip to content

Fork of LunicLynx/vscode-bison to hopefully get syntax highlight for goyacc

Notifications You must be signed in to change notification settings

condekind/vscode-goyacc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goyacc syntax highlighting

Fork of LunicLynx/vscode-bison to hopefully get syntax highlight for goyacc

Warning: not working perfectly. It is 'good enough' for simple .y files, such as tools/cmd/goyacc/testdata/expr/expr.y file present in the official goyacc repo. From the repo this fork originated, I just replaced all the .c occurrences with .go and removed the section meta.declarations.bison, which was causing the block inside %{...%} to not be highlighted (before removing it, I couldn't see the meta.prologue.goyacc scope with the 'Inspect Editor Tokens and Scope' command)

This is currently unpublished, there are instructions below on how to get this in your vscode


To get an installable package file, you'll need vsce. To install it with npm, run:

npm install -g vsce

This will generate goyacc-{VERSION}.vsix:

vsce package

To install the package:

Inside vscode, open the command palette (default ctrl+shift+p) type/run "install from vsix" and choose the generated file

About

Fork of LunicLynx/vscode-bison to hopefully get syntax highlight for goyacc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published