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.

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/

About

Ruby Syntax Highlighting for Visual Studio Code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published