Skip to content

🎨 A tmLanguage grammar for Bundler's Gemfile.lock files

License

Notifications You must be signed in to change notification settings

hmarr/gemfile-lock-tmlanguage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextMate grammar for Gemfile.lock files

A tmLanguage grammar for Bundler's Gemfile.lock files. The grammar lives in syntaxes/gemfile-lock.tmLanguage.json.

This should probably be part of a pre-existing Ruby grammar package like atom/language-ruby or rubyide/vscode-ruby rather than an independent project, but I needed somewhere to put the code while I was working on it so here it is.

Here's an example of it highlighting Rails' Gemfile.lock.

Tests

Tests are written using the wonderful vscode-tmgrammar-test package, and live in syntaxes/tests.

To run the tests, you can use the "Run grammar tests" task if you're using VS Code. Otherwise, it's:

$ npm test

Developing

While working on grammars I mostly use test-driven development. However, it's sometimes helpful to spin up an editor instance using the grammar to see what the syntax highlighting looks like.

This package also functions as a VS Code extension, so doing that's pretty easy. From within VS Code, just hit F5 to start an extension debugging session, then set the file type to Gemfile.lock (using Cmd+K M).

About

🎨 A tmLanguage grammar for Bundler's Gemfile.lock files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published