vscode-ruby-syntax

Ruby Syntax Highlighting for Visual Studio Code

MIT License

Stars
3
Committers
1

Ruby Syntax Highlighting for Visual Studio Code

Ruby, ERB and Gemfile Syntax Support.

This Extension allows for Ruby Syntax Support without needing to install language server, debugger etc.

Original Ruby and ERB Syntax Grammar extracted from vscode-ruby.

Install

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

Changes Differing from extracted syntaxes:

  • Added Grammar for Gemfile following bundler docs.
  • Added Ternary :.
  • Added Ruby Range.
  • Fixed Comment Blocks for .erb files to allow for html block commenting <!-- -->" (still respects single line comments <%# %>).
  • Fixed variable recognition ending with ? or !

** Pull Requests submitted to forked repository for ruby and erb grammar changes addressed in this repo. **

References

Syntax Highlight Guide

Language Grammar Rules

Related Extension

Rails Syntax Highlighting

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

Badges
Extracted from project README
Published Version to VS Code VS Code Downloads VS Code Installs GitHub License
Related Projects