This commit is contained in:
marc hoffman
2013-04-03 13:20:50 +02:00
38 changed files with 11596 additions and 20 deletions

View File

@@ -148,7 +148,7 @@ module Linguist
#
# Return true or false
def image?
['.png', '.jpg', '.jpeg', '.gif'].include?(extname)
['.png', '.jpg', '.jpeg', '.gif'].include?(extname.downcase)
end
# Public: Is the blob a supported 3D model format?
@@ -158,6 +158,13 @@ module Linguist
extname.downcase == '.stl'
end
# Public: Is the blob a PDF?
#
# Return true or false
def pdf?
extname.downcase == '.pdf'
end
MEGABYTE = 1024 * 1024
# Public: Is the blob too big to load?

View File

@@ -216,7 +216,7 @@ CSS:
Ceylon:
type: programming
lexer: Text only
lexer: Ceylon
primary_extension: .ceylon
ChucK:
@@ -242,6 +242,7 @@ CoffeeScript:
extensions:
- ._coffee
- .cson
- .iced
filenames:
- Cakefile
@@ -629,8 +630,6 @@ Java:
ace_mode: java
color: "#b07219"
primary_extension: .java
extensions:
- .pde
Java Server Pages:
group: Java
@@ -747,6 +746,13 @@ Lua:
extensions:
- .nse
M:
type: programming
lexer: Common Lisp
aliases:
- mumps
primary_extension: .m
Makefile:
aliases:
- make
@@ -1003,6 +1009,12 @@ PowerShell:
- posh
primary_extension: .ps1
Processing:
type: programming
lexer: Java
color: "#2779ab"
primary_extension: .pde
Prolog:
type: programming
color: "#74283c"
@@ -1331,10 +1343,10 @@ XML:
aliases:
- rss
- xsd
- xsl
- wsdl
primary_extension: .xml
extensions:
- .axml
- .ccxml
- .dita
- .ditamap
@@ -1354,6 +1366,7 @@ XML:
- .tmPreferences
- .tmSnippet
- .tml
- .ui
- .vxml
- .wsdl
- .wxi
@@ -1371,7 +1384,6 @@ XML:
XProc:
type: programming
group: XML
lexer: XML
primary_extension: .xpl
extensions:
@@ -1391,7 +1403,8 @@ XS:
XSLT:
type: programming
group: XML
aliases:
- xsl
primary_extension: .xslt
extensions:
- .xsl

File diff suppressed because it is too large Load Diff

View File

@@ -16,6 +16,10 @@
# https://github.com/joyent/node
- ^deps/
- ^tools/
- (^|/)configure$
- (^|/)configure.ac$
- (^|/)config.guess$
- (^|/)config.sub$
# Node dependencies
- node_modules/
@@ -104,3 +108,6 @@
# Samples folders
- ^[Ss]amples/
# Test fixtures
- ^[Tt]est/fixtures/