Skip to content

Commit

Permalink
Implement lexer for Crystal
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Leitzen committed Jul 16, 2018
1 parent 7e0ca0e commit fdbd40a
Show file tree
Hide file tree
Showing 12 changed files with 532 additions and 46 deletions.
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
sudo: false
dist: trusty
language: ruby
rvm:
- 2.5.1
before_install: gem install bundler -v 1.16.2
- "2.0"
- "2.1"
- "2.2"
- "2.3"
- "2.4"
- "2.5"

cache:
bundler: true
bundler_args: --without development
before_install:
- gem install bundler
- gem update --system
script:
- bundle exec rake
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Rouge::Lexers::Crystal

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rouge/lexers/crystal`. To experiment with that code, run `bin/console` for an interactive prompt.
[Crystal](https://crystal-lang.org) lexer for [rouge](http://rouge.jneen.net/).

TODO: Delete this and the text above, and describe your gem
This gem exists because rouge lacks support for the Crystal language. These PRs are pending: [441](/~https://github.com/jneen/rouge/pull/441) and [863](/~https://github.com/jneen/rouge/pull/863).

## Installation

Expand All @@ -22,7 +22,8 @@ Or install it yourself as:

## Usage

TODO: Write usage instructions here
See rouge's [README](/~https://github.com/jneen/rouge/blob/master/README.md) for the full description.


## Development

Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "spec"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
t.test_files = FileList["spec/**/*_spec.rb"]
end

task :default => :test
1 change: 1 addition & 0 deletions lib/rouge-lexers-crystal.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require "rouge/lexers/crystal"
Loading

0 comments on commit fdbd40a

Please sign in to comment.