Adam Roben
a817d95d6c
Fix CSS/SVG grammar names
2015-02-13 11:57:21 -05:00
Adam Roben
066052ddd2
Exclude documentation files from language statistics
...
Documentation is an important part of a software project but is not
generally thought of as part of the code for that project. Repository
language statistics are used to quantify the project's code, so it makes
sense to exclude documentation from those computations.
Documentation files are recognized similarly to vendored files.
lib/linguist/documentation.yml contains regular expressions to match
common names for documentation files. A new linguist-documentation Git
attribute can be used to override those conventions.
2015-02-12 10:20:47 -05:00
Adam Roben
e0c1107a25
Classify SVG files as data
...
This keeps SVG files (which are really just images, even though they
happen to be represented as text) out of repository language statistics.
2015-02-10 15:36:08 -05:00
Adam Roben
4e4a18c71a
Classify CSS as a markup language
...
It was the only language in Language.detectable_markup that wasn't
actually classified as "markup".
2015-02-10 14:08:58 -05:00
Adam Roben
b2ee2cc7b8
Detect all markup languages when computing language statistics
...
Originally, only "programming" languages were included in repository
language statistics. In 33ebee0f6a we
started detecting a few selected "markup" languages as well. We didn't
include all "markup" languages because at the time formats like Markdown
and AsciiDoc were labeled as "markup" languages, and we thought that
including those prose (i.e., non-code) languages in repository
statistics on github.com was misleading for repositories that are
largely about code but also contain a lot of documentation (e.g.,
rails/rails).
This hand-picked set of whitelisted "markup" languages can cause strange
categorization for some repositories. For example, it includes CSS (and
some variants) but not HTML. This results in repositories that contain
the source code for a static website being classified as either a
JavaScript (programming) or CSS (markup) repository, with no mention of
HTML anywhere.
Fast-forward to today, and prose languages are no longer "markup"
languages; they're now "prose" languages. So now we can include all
"markup" languages in repository language statistics without worrying
about undesirable effects for documentation-heavy repositories.
2015-02-10 13:39:42 -05:00
Paul Chaignon
665f9ee5b5
Merge branch 'master' into new-grammars
2015-02-09 23:19:37 +01:00
Brandon Keepers
bdc724d548
Detect "use 5.xxx" as Perl
2015-02-09 10:19:36 -05:00
Paul Chaignon
0019abe5e7
Opal grammar from Sublime Text package
2015-02-08 11:45:54 +01:00
Paul Chaignon
30d2883436
Grammar for PogoScript from TextMate bundle
2015-02-08 11:44:11 +01:00
Paul Chaignon
cc5881dca2
Grammar for Propeller Spin from Sublime Text package
2015-02-08 11:20:40 +01:00
Paul Chaignon
d17f5dfd9e
Papyrus grammar from Sublime Text package
2015-02-08 11:14:18 +01:00
Paul Chaignon
4c037c644f
Grammar for GAP from TextMate bundle
2015-02-08 10:43:45 +01:00
Paul Chaignon
a08f0da30d
Grammar for Mediawiki from TextMate bundle
2015-02-07 19:58:49 +01:00
Arfon Smith
654cfd7a47
Merge pull request #2078 from pchaigno/innosetup-grammar
...
Grammar for Inno Setup
2015-02-07 10:46:11 -06:00
Arfon Smith
201b0ba53c
Making modelines case-insensitive
2015-02-06 08:41:37 -06:00
Park Hyunwoo
6ca149de1d
Missing whitespace
2015-02-05 10:27:14 +09:00
Paul Chaignon
2e76ce740e
Grammar for Inno Setup from Sublime Text package
2015-02-04 21:28:36 +01:00
Arfon Smith
d49701f470
Merge pull request #2071 from pchaigno/new-grammars
...
Grammars for 6 languages
2015-02-04 14:14:54 -06:00
Arfon Smith
b8f3078966
Bumping version to v4.3.1
2015-02-04 08:31:36 -06:00
Lars Brinkhoff
2077fa3837
'Text' doesn't qualify as a valid modeline language.
2015-02-04 08:20:19 +01:00
Lars Brinkhoff
3a1b17f1f9
Add .4TH Forth extension.
2015-02-03 13:04:06 +01:00
Paul Chaignon
9fe9bf617f
Grammar for eC from TextMate bundle
2015-02-03 12:52:35 +01:00
Paul Chaignon
8f70604466
Grammar for Ox from Sublime Text package
2015-02-02 21:50:49 +01:00
Paul Chaignon
2044e191a2
Grammar for Grace from TextMate bundle
2015-02-02 21:48:27 +01:00
Paul Chaignon
8fe9ec0521
Grammar for G-Code from Sublime Text package
2015-02-02 21:37:24 +01:00
Paul Chaignon
034e510ba5
Grammar for TXL from Sublime Text package
2015-02-02 21:24:22 +01:00
Paul Chaignon
36a0d760e9
Grammar for J from Sublime Text package
2015-02-01 21:52:24 +01:00
Paul Chaignon
6e9dc2339d
Grammar for Golo from Sublime Text package
2015-02-01 21:41:22 +01:00
Paul Chaignon
3864e712ef
Grammar for GDScript from Sublime Text package
2015-02-01 21:37:07 +01:00
Paul Chaignon
8376f1e4a4
Grammar for Creole from Sublime Text package
2015-02-01 21:34:10 +01:00
Paul Chaignon
1b0fd752d3
Grammar for CLIPS from Sublime Text package
2015-02-01 21:29:03 +01:00
Paul Chaignon
0c60078d27
Grammar for APL from Sublime Text package
2015-02-01 21:16:45 +01:00
Arfon Smith
75d685a7f4
Merge pull request #2000 from jayphelps/patch-2
...
Added `htmlbars` as an alias for Handlebars
2015-02-01 11:03:13 -08:00
Steinway Wu
c2ab5bc09d
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
.gitmodules
2015-01-31 17:24:23 -05:00
Paul Chaignon
08790f2f0a
Grammar for Modelica
2015-01-31 13:44:11 +01:00
Paul Chaignon
896270e617
Support for Modelica
2015-01-31 13:37:42 +01:00
Arfon Smith
1a3960e95d
Merge pull request #2056 from github/cut-release-v4.3.0
...
Cut release v4.3.0
2015-01-30 12:15:55 -06:00
Steinway Wu
98518e5c8c
add ats mode from sublime package
2015-01-30 12:52:38 -05:00
Arfon Smith
2b7a488d64
Bumping version to 4.3.0
2015-01-30 11:25:50 -06:00
Arfon Smith
cf483c28e3
Adding cp as a C++ extension
2015-01-30 10:56:06 -06:00
Arfon Smith
fecc39d97d
Merge pull request #1652 from github/objc-mercury
...
Disambiguate Matlab, Objective-C, Mathematica, M, and Mercury
2015-01-30 08:51:51 -06:00
Arfon Smith
339370a703
Extracting ObjectiveC regex into a constant
2015-01-30 08:48:26 -06:00
Arfon Smith
359e5157a8
Merge branch 'master' into objc-mercury
2015-01-30 08:34:50 -06:00
Arfon Smith
207bd8d77c
Merge pull request #2001 from rusthon/master
...
added Rusthon to languages list for syntax highlighting in md.
2015-01-30 08:28:27 -06:00
Arfon Smith
ba5454808e
Merge pull request #1916 from Mailaender/dot-desktop-files
...
Added support for Linux .desktop and .emacs.desktop files
2015-01-30 08:24:27 -06:00
Arfon Smith
9196ba91bb
Merge pull request #2041 from github/emacs-vim-mode-lines
...
Emacs vim modelines
2015-01-29 20:12:47 -06:00
Brandon Keepers
4f92d620eb
Simplify detect
2015-01-29 16:28:54 -06:00
Brandon Keepers
e7f5779659
Break modelines into two regular expressions
...
This makes them easier to read and maintains Ruby 1.9 compatibility
2015-01-29 16:28:54 -06:00
Brandon Keepers
437ba70b9e
Find modeline anywhere in the data
2015-01-29 13:14:06 -06:00
Brandon Keepers
fadca563bc
Move regex to a constant
2015-01-29 13:09:12 -06:00