Skip to content

smridge/vscode-ruby-syntax

Repository files navigation

Ruby Syntax Highlighting for Visual Studio Code

Published Version to VS Code VS Code Downloads VS Code Installs GitHub License

Ruby, ERB and Gemfile Syntax Support.

This Extension allows for Ruby Syntax Support without needing to install language server, debugger etc. for a way to keep things simple and distraction free.

Install

This extension is available at the following extension marketplaces:

Run one of the following commands depending on the editor you are using:

  • For vscode: code --install-extension SarahRidge.vscode-ruby-syntax
  • For cursor: cursor --install-extension SarahRidge.vscode-ruby-syntax

Reload your editor

Notes

  • The initial language grammar was copied from vscode-ruby which is no longer supported
  • ruby-lsp as the successor now maintains ruby grammars

Diffs

  • Added Grammar for Gemfile following bundler docs
  • Added Ternary :
  • Added Ruby Ranges .. / ...
  • Fixed variable recognition ending with ? or !
  • Fixed Comment Blocks for .erb files by adding <%# to each line
  • Fixed multiline arithmetic operations and regex matching collisions

References

Related Extension

Publish (internal)

Note: Publishing a new version of this theme is only meant for maintainers.

  • yarn run vs-package
  • Publish to VSCode Marketplace: yarn run vs-publish
  • Publish to Open VSX Registry: npx ovsx publish <.vsix file> -p <OpenVSX PAT>

Ruby Logo © 2006, Yukihiro Matsumoto: https://www.ruby-lang.org/en/about/logo/

About

Ruby Syntax Highlighting for Visual Studio Code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •