Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 2.38 KB

README.md

File metadata and controls

38 lines (26 loc) · 2.38 KB

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/