Skip to content

Commit

Permalink
Merge pull request github-linguist#1269 from github/pygments-bump
Browse files Browse the repository at this point in the history
Bumps pygments.rb to 0.6.0
  • Loading branch information
alindeman committed Jun 11, 2014
2 parents 81b7a41 + 6818744 commit bc482af
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 5 deletions.
2 changes: 1 addition & 1 deletion github-linguist.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.add_dependency 'charlock_holmes', '~> 0.7.3'
s.add_dependency 'escape_utils', '~> 1.0.1'
s.add_dependency 'mime-types', '~> 1.19'
s.add_dependency 'pygments.rb', '~> 0.5.4'
s.add_dependency 'pygments.rb', '~> 0.6.0'

s.add_development_dependency 'json'
s.add_development_dependency 'mocha'
Expand Down
10 changes: 9 additions & 1 deletion lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,14 @@ Slash:
extensions:
- .sl

Slim:
group: HTML
type: markup
lexer: Slim
color: "#ff8877"
extensions:
- .slim

Smalltalk:
type: programming
color: "#596706"
Expand Down Expand Up @@ -2064,8 +2072,8 @@ SuperCollider:

Swift:
type: programming
lexer: Swift
color: "#ffac45"
lexer: Text only
extensions:
- .swift

Expand Down
75 changes: 72 additions & 3 deletions lib/linguist/samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@
"Slash": [
".sl"
],
"Slim": [
".slim"
],
"Smalltalk": [
".st"
],
Expand Down Expand Up @@ -740,8 +743,8 @@
".gemrc"
]
},
"tokens_total": 614357,
"languages_total": 811,
"tokens_total": 614434,
"languages_total": 812,
"tokens": {
"ABAP": {
"*/**": 1,
Expand Down Expand Up @@ -60170,6 +60173,70 @@
"ast.eval": 1,
"Env.new": 1
},
"Slim": {
"doctype": 1,
"html": 2,
"head": 1,
"title": 1,
"Slim": 2,
"Examples": 1,
"meta": 2,
"name": 2,
"content": 2,
"author": 2,
"javascript": 1,
"alert": 1,
"(": 1,
")": 1,
"body": 1,
"h1": 1,
"Markup": 1,
"examples": 1,
"#content": 1,
"p": 2,
"This": 1,
"example": 1,
"shows": 1,
"you": 2,
"how": 1,
"a": 1,
"basic": 1,
"file": 1,
"looks": 1,
"like.": 1,
"yield": 1,
"-": 3,
"unless": 1,
"items.empty": 1,
"table": 1,
"for": 1,
"item": 1,
"in": 1,
"items": 2,
"do": 1,
"tr": 1,
"td.name": 1,
"item.name": 1,
"td.price": 1,
"item.price": 1,
"else": 1,
"|": 2,
"No": 1,
"found.": 1,
"Please": 1,
"add": 1,
"some": 1,
"inventory.": 1,
"Thank": 1,
"div": 1,
"id": 1,
"render": 1,
"Copyright": 1,
"#": 2,
"{": 2,
"year": 1,
"}": 2
},
"Smalltalk": {
"Object": 1,
"subclass": 2,
Expand Down Expand Up @@ -67089,6 +67156,7 @@
"ShellSession": 233,
"Shen": 3472,
"Slash": 187,
"Slim": 77,
"Smalltalk": 423,
"SourcePawn": 2080,
"SQL": 1485,
Expand Down Expand Up @@ -67279,6 +67347,7 @@
"ShellSession": 3,
"Shen": 3,
"Slash": 1,
"Slim": 1,
"Smalltalk": 3,
"SourcePawn": 1,
"SQL": 5,
Expand Down Expand Up @@ -67314,5 +67383,5 @@
"Zephir": 2,
"Zimpl": 1
},
"md5": "92c117f774abe712958bb369c4e1dde9"
"md5": "3e0901633ee5729c6dac371442522f33"
}
31 changes: 31 additions & 0 deletions samples/Slim/sample.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
doctype html
html
head
title Slim Examples
meta name="keywords" content="template language"
meta name="author" content=author
javascript:
alert('Slim supports embedded javascript!')
body
h1 Markup examples

#content
p This example shows you how a basic Slim file looks like.

== yield

- unless items.empty?
table
- for item in items do
tr
td.name = item.name
td.price = item.price
- else
p
| No items found. Please add some inventory.
Thank you!

div id="footer"
= render 'footer'
| Copyright © #{year} #{author}

0 comments on commit bc482af

Please sign in to comment.