Compare commits

..

6 Commits

Author SHA1 Message Date
Colin Seymour
fb77fdcd53 Update submod sha 2018-02-12 14:12:16 +00:00
Colin Seymour
5306d65e79 Force use of my test branch 2018-02-12 14:07:26 +00:00
Colin Seymour
24fa4c82f3 Use lildude's fork 2018-02-12 13:56:06 +00:00
Nathaniel J. Smith
2abf488e65 Treat "python3" as an alias for "python" (#4026)
Pygments has separate highlighters for "python" (meaning python 2) and "python3" (meaning python 3). As a result, there are lots of files out there (especially ReSTructured text) that contain code blocks whose language is explicitly given as "python3" or "py3". Currently these are unrecognized by linguist. Instead, we should use our python highlighter for them (which works for both python 2 and python 3).

References:
  http://pygments.org/docs/lexers/#pygments.lexers.python.Python3Lexer
  https://github.com/github/markup/issues/1019
  https://github.com/python-trio/async_generator/pull/12
2018-02-08 09:52:21 +00:00
Tobias V. Langhoff
812797b51d Add "asm" as alias for assembly (#4019) 2018-01-31 11:56:47 +00:00
Tobias V. Langhoff
dc32876113 Fix anchor link in README.md (#4018) 2018-01-30 21:41:45 +01:00
5 changed files with 9 additions and 6 deletions

7
.gitmodules vendored
View File

@@ -739,9 +739,6 @@
[submodule "vendor/grammars/language-emacs-lisp"] [submodule "vendor/grammars/language-emacs-lisp"]
path = vendor/grammars/language-emacs-lisp path = vendor/grammars/language-emacs-lisp
url = https://github.com/Alhadis/language-emacs-lisp url = https://github.com/Alhadis/language-emacs-lisp
[submodule "vendor/grammars/language-babel"]
path = vendor/grammars/language-babel
url = https://github.com/github-linguist/language-babel
[submodule "vendor/CodeMirror"] [submodule "vendor/CodeMirror"]
path = vendor/CodeMirror path = vendor/CodeMirror
url = https://github.com/codemirror/CodeMirror url = https://github.com/codemirror/CodeMirror
@@ -898,3 +895,7 @@
[submodule "vendor/grammars/atom-language-nextflow"] [submodule "vendor/grammars/atom-language-nextflow"]
path = vendor/grammars/atom-language-nextflow path = vendor/grammars/atom-language-nextflow
url = https://github.com/nextflow-io/atom-language-nextflow url = https://github.com/nextflow-io/atom-language-nextflow
[submodule "vendor/grammars/language-babel"]
path = vendor/grammars/language-babel
url = https://github.com/lildude/language-babel
branch = make-pcre-friendly

View File

@@ -97,7 +97,7 @@ If the language stats bar is reporting a language that you don't expect:
1. If the files are misclassified, search for [open issues][issues] to see if anyone else has already reported the issue. Any information you can add, especially links to public repositories, is helpful. You can also use the [manual overrides](#overrides) feature to correctly classify them in your repository. 1. If the files are misclassified, search for [open issues][issues] to see if anyone else has already reported the issue. Any information you can add, especially links to public repositories, is helpful. You can also use the [manual overrides](#overrides) feature to correctly classify them in your repository.
1. If there are no reported issues of this misclassification, [open an issue][new-issue] and include a link to the repository or a sample of the code that is being misclassified. 1. If there are no reported issues of this misclassification, [open an issue][new-issue] and include a link to the repository or a sample of the code that is being misclassified.
Keep in mind that the repository language stats are only [updated when you push changes](#how-linguist-works-on-github-com), and the results are cached for the lifetime of your repository. If you have not made any changes to your repository in a while, you may find pushing another change will correct the stats. Keep in mind that the repository language stats are only [updated when you push changes](#how-linguist-works-on-githubcom), and the results are cached for the lifetime of your repository. If you have not made any changes to your repository in a while, you may find pushing another change will correct the stats.
### My repository isn't showing my language ### My repository isn't showing my language

View File

@@ -301,6 +301,7 @@ Assembly:
type: programming type: programming
color: "#6E4C13" color: "#6E4C13"
aliases: aliases:
- asm
- nasm - nasm
extensions: extensions:
- ".asm" - ".asm"
@@ -3631,6 +3632,7 @@ Python:
- python3 - python3
aliases: aliases:
- rusthon - rusthon
- python3
language_id: 303 language_id: 303
Python console: Python console:
type: programming type: programming

2
vendor/README.md vendored
View File

@@ -181,7 +181,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **JSON5:** [atom/language-javascript](https://github.com/atom/language-javascript) - **JSON5:** [atom/language-javascript](https://github.com/atom/language-javascript)
- **JSONiq:** [wcandillon/language-jsoniq](https://github.com/wcandillon/language-jsoniq) - **JSONiq:** [wcandillon/language-jsoniq](https://github.com/wcandillon/language-jsoniq)
- **JSONLD:** [atom/language-javascript](https://github.com/atom/language-javascript) - **JSONLD:** [atom/language-javascript](https://github.com/atom/language-javascript)
- **JSX:** [github-linguist/language-babel](https://github.com/github-linguist/language-babel) - **JSX:** [lildude/language-babel](https://github.com/lildude/language-babel)
- **Julia:** [JuliaEditorSupport/atom-language-julia](https://github.com/JuliaEditorSupport/atom-language-julia) - **Julia:** [JuliaEditorSupport/atom-language-julia](https://github.com/JuliaEditorSupport/atom-language-julia)
- **Jupyter Notebook:** [textmate/json.tmbundle](https://github.com/textmate/json.tmbundle) - **Jupyter Notebook:** [textmate/json.tmbundle](https://github.com/textmate/json.tmbundle)
- **KiCad Layout:** [Alhadis/language-pcb](https://github.com/Alhadis/language-pcb) - **KiCad Layout:** [Alhadis/language-pcb](https://github.com/Alhadis/language-pcb)