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

  • Run: code --install-extension SarahRidge.vscode-ruby-syntax
    • Alternatively, extension can be installed via marketplace
  • Reload VSCode

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
  • yarn run vs-publish

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