Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
1285 lines (1129 sloc) 15.4 KB
# Defines all Languages known
#
# All languages have an associated lexer for syntax highlighting. It
# defaults to name.downcase, which covers most cases. Make sure the
# lexer exists in lexers.yml. This is a list of available in our
# version of pygments.
#
# type - Either data, programming, markup, or nil
# lexer - An explicit lexer String (defaults to name.downcase)
# aliases - An Array of additional aliases (implicitly
# includes name.downcase)
# ace_mode - A String name of Ace Mode (if available)
# extension - An Array of associated extensions
# primary_extension - A String for the main extension associated with
# the langauge. (defaults to extensions.first)
# overrides - An Array of extensions that takes precedence over conflicts
# searchable - Boolean flag to enable searching (defaults to true)
# search_term - Deprecated: Some languages maybe indexed under a
# different alias. Avoid defining new exceptions.
# color - CSS hex color to represent the language.
#
# Any additions or modifications (even trivial) should have corresponding
# test change in `test/test_blob.rb`.
#
# Please keep this list alphabetized.
ASP:
type: programming
lexer: aspx-vb
search_term: aspx-vb
aliases:
- aspx
- aspx-vb
primary_extension: .asp
extensions:
- .asax
- .ascx
- .ashx
- .asmx
- .asp
- .aspx
- .axd
ActionScript:
type: programming
lexer: ActionScript 3
search_term: as3
aliases:
- as3
extensions:
- .as
Ada:
type: programming
extensions:
- .adb
- .ads
Apex:
type: programming
lexer: Text only
extensions:
- .cls
AppleScript:
aliases:
- osascript
primary_extension: .scpt
extensions:
- .applescript
- .scpt
Arc:
type: programming
lexer: Text only
extensions:
- .arc
Arduino:
type: programming
lexer: C++
extensions:
- .ino
Assembly:
type: programming
lexer: NASM
search_term: nasm
aliases:
- nasm
extensions:
- .asm
Augeas:
type: programming
extensions:
- .aug
AutoHotkey:
type: programming
lexer: autohotkey
aliases:
- ahk
extensions:
- .ahk
Batchfile:
type: programming
group: Shell
search_term: bat
aliases:
- bat
primary_extension: .bat
extensions:
- .bat
- .cmd
Befunge:
extensions:
- .befunge
BlitzMax:
extensions:
- .bmx
Boo:
type: programming
extensions:
- .boo
Brainfuck:
extensions:
- .b
- .bf
Bro:
type: programming
extensions:
- .bro
C:
type: programming
overrides:
- .h
primary_extension: .c
extensions:
- .c
- .h
- .w
C#:
type: programming
ace_mode: csharp
search_term: csharp
aliases:
- csharp
extensions:
- .cs
C++:
type: programming
ace_mode: c_cpp
search_term: cpp
aliases:
- cpp
primary_extension: .cpp
extensions:
- .c++
- .cc
- .cpp
- .cu
- .cxx
- .h
- .h++
- .hh
- .hpp
- .hxx
- .tcc
C-ObjDump:
type: data
lexer: c-objdump
extensions:
- .c-objdump
C2hs Haskell:
type: programming
lexer: Haskell
group: Haskell
aliases:
- c2hs
extensions:
- .chs
CMake:
extensions:
- .cmake
- .cmake.in
filenames:
- CMakeLists.txt
CSS:
ace_mode: css
extensions:
- .css
ChucK:
lexer: Java
extensions:
- .ck
Clojure:
type: programming
ace_mode: clojure
primary_extension: .clj
extensions:
- .clj
- .cljs
CoffeeScript:
type: programming
ace_mode: coffee
aliases:
- coffee
extensions:
- .coffee
filenames:
- Cakefile
ColdFusion:
type: programming
lexer: Coldfusion HTML
ace_mode: coldfusion
search_term: cfm
aliases:
- cfm
primary_extension: .cfm
extensions:
- .cfc
- .cfm
Common Lisp:
type: programming
aliases:
- lisp
primary_extension: .lisp
extensions:
- .lisp
- .lsp
- .ny
Coq:
type: programming
extensions:
- .v
Cpp-ObjDump:
type: data
lexer: cpp-objdump
extensions:
- .cppobjdump
- .c++objdump
- .cxx-objdump
Cucumber:
lexer: Gherkin
extensions:
- .feature
Cython:
type: programming
group: Python
primary_extension: .pyx
extensions:
- .pxd
- .pxi
- .pyx
D:
type: programming
extensions:
- .d
- .di
D-ObjDump:
type: data
lexer: d-objdump
extensions:
- .d-objdump
Darcs Patch:
search_term: dpatch
aliases:
- dpatch
extensions:
- .darcspatch
- .dpatch
Dart:
type: programming
extensions:
- .dart
Delphi:
type: programming
primary_extension: .pas
extensions:
- .dpr
- .lpr
- .pas
DCPU-16 ASM:
type: programming
lexer: dasm16
primary_extension: .dasm16
extensions:
- .dasm
- .dasm16
aliases:
- dasm16
Diff:
extensions:
- .diff
- .patch
Dylan:
type: programming
extensions:
- .dylan
Ecere Projects:
type: data
group: JavaScript
lexer: JSON
extensions:
- .epj
Eiffel:
type: programming
lexer: Text only
extensions:
- .e
Elixir:
type: programming
primary_extension: .ex
extensions:
- .ex
- .exs
Emacs Lisp:
type: programming
lexer: Scheme
aliases:
- elisp
- emacs
primary_extension: .el
extensions:
- .el
- .emacs
Erlang:
type: programming
primary_extension: .erl
extensions:
- .erl
- .hrl
F#:
type: programming
lexer: FSharp
search_term: ocaml
extensions:
- .fs
- .fsi
- .fsx
FORTRAN:
type: programming
lexer: Fortran
primary_extension: .f90
extensions:
- .F
- .F03
- .F08
- .F77
- .F90
- .F95
- .FOR
- .FPP
- .f
- .f03
- .f08
- .f77
- .f90
- .f95
- .for
- .fpp
Factor:
type: programming
extensions:
- .factor
Fancy:
type: programming
primary_extension: .fy
extensions:
- .fancypack
- .fy
Fantom:
type: programming
extensions:
- .fan
GAS:
type: programming
group: Assembly
primary_extension: .s
extensions:
- .S
- .s
Genshi:
extensions:
- .kid
Gentoo Ebuild:
group: Shell
lexer: Bash
extensions:
- .ebuild
Gentoo Eclass:
group: Shell
lexer: Bash
extensions:
- .eclass
Gettext Catalog:
search_term: pot
searchable: false
aliases:
- pot
extensions:
- .po
- .pot
Go:
type: programming
extensions:
- .go
Gosu:
type: programming
primary_extension: .gs
extensions:
- .gs
- .gsp
- .gst
- .gsx
- .vark
Groff:
primary_extension: .man
extensions:
- '.1'
- '.2'
- '.3'
- '.4'
- '.5'
- '.6'
- '.7'
- .man
Groovy:
type: programming
ace_mode: groovy
primary_extension: .groovy
extensions:
- .gradle
- .groovy
Groovy Server Pages:
group: Groovy
lexer: Java Server Page
overrides:
- .gsp
aliases:
- gsp
extensions:
- .gsp
HTML:
type: markup
ace_mode: html
primary_extension: .html
extensions:
- .htm
- .html
- .xhtml
- .xslt
HTML+Django:
type: markup
group: HTML
lexer: HTML+Django/Jinja
extensions:
- .mustache
HTML+ERB:
type: markup
group: HTML
lexer: RHTML
primary_extension: .erb
extensions:
- .erb
- .html.erb
HTML+PHP:
type: markup
group: HTML
extensions:
- .phtml
HaXe:
type: programming
lexer: haXe
ace_mode: haxe
extensions:
- .hx
- .hxml
- .mtt
Haml:
group: HTML
type: markup
extensions:
- .haml
Haskell:
type: programming
extensions:
- .hs
- .hsc
INI:
type: data
extensions:
- .cfg
- .ini
- .prefs
- .properties
filenames:
- .gitconfig
IRC log:
lexer: IRC logs
search_term: irc
aliases:
- irc
extensions:
- .weechatlog
Io:
type: programming
extensions:
- .io
Ioke:
type: programming
extensions:
- .ik
JSON:
type: data
group: JavaScript
ace_mode: json
searchable: false
extensions:
- .json
Java:
type: programming
ace_mode: java
extensions:
- .java
- .pde
Java Server Pages:
group: Java
lexer: Java Server Page
search_term: jsp
aliases:
- jsp
extensions:
- .jsp
JavaScript:
type: programming
ace_mode: javascript
aliases:
- js
- node
primary_extension: .js
extensions:
- .bones
- .jake
- .js
- .jsfl
- .jsm
- .jss
- .jsx
- .pac
- .sjs
- .ssjs
filenames:
- Jakefile
Julia:
type: programming
extensions:
- .jl
Kotlin:
type: programming
extensions:
- .kt
- .ktm
- .kts
LLVM:
extensions:
- .ll
LilyPond:
lexer: Text only
primary_extension: .ly
extensions:
- .ily
- .ly
Literate Haskell:
type: programming
group: Haskell
search_term: lhs
aliases:
- lhs
extensions:
- .lhs
Logtalk:
type: programming
extensions:
- .lgt
Lua:
type: programming
ace_mode: lua
extensions:
- .lua
- .nse
Makefile:
extensions:
- .mak
- .mk
filenames:
- makefile
- Makefile
- GNUmakefile
Mako:
extensions:
- .mako
- .mao
Markdown:
type: markup
lexer: Text only
ace_mode: markdown
primary_extension: .md
extensions:
- .markdown
- .md
- .mkd
- .mkdown
- .ron
Matlab:
type: programming
primary_extension: .matlab
extensions:
- .m
- .matlab
Max/MSP:
type: programming
lexer: Text only
extensions:
- .mxt
MiniD: # Legacy
searchable: false
primary_extension: .minid # Dummy extension
Mirah:
type: programming
lexer: Ruby
search_term: ruby
extensions:
- .duby
- .mir
- .mirah
Moocode:
lexer: MOOCode
extensions:
- .moo
Myghty:
extensions:
- .myt
Nemerle:
type: programming
extensions:
- .n
Nimrod:
type: programming
extensions:
- .nim
- .nimrod
Nu:
type: programming
lexer: Scheme
aliases:
- nush
extensions:
- .nu
filenames:
- Nukefile
NumPy:
group: Python
primary_extension: .numpy
extensions:
- .numpy
- .numpyw
- .numsc
OCaml:
type: programming
ace_mode: ocaml
primary_extension: .ml
extensions:
- .ml
- .mli
- .mll
- .mly
ObjDump:
type: data
lexer: objdump
extensions:
- .objdump
Objective-C:
type: programming
overrides:
- .m
primary_extension: .m
extensions:
- .h
- .m
- .mm
Objective-J:
type: programming
extensions:
- .j
- .sj
Opa:
type: programming
extensions:
- .opa
OpenCL:
type: programming
group: C
lexer: C
extensions:
- .cl
OpenEdge ABL:
type: programming
aliases:
- progress
- openedge
- abl
primary_extension: .p
extensions:
- .cls
- .p
PHP:
type: programming
ace_mode: php
extensions:
- .aw
- .ctp
- .php
- .php3
- .php4
- .php5
- .phpt
filenames:
- Phakefile
Parrot:
type: programming
lexer: Text only
primary_extension: .parrot # Dummy extension
Parrot Internal Representation:
group: Parrot
type: programming
lexer: Text only
aliases:
- pir
extensions:
- .pir
Parrot Assembly:
group: Parrot
type: programming
lexer: Text only
aliases:
- pasm
extensions:
- .pasm
Perl:
type: programming
ace_mode: perl
overrides:
- .pl
- .t
primary_extension: .pl
extensions:
- .PL
- .perl
- .ph
- .pl
- .plx
- .pm
- .pod
- .psgi
- .t
PowerShell:
type: programming
ace_mode: powershell
aliases:
- posh
extensions:
- .ps1
- .psm1
Prolog:
type: programming
extensions:
- .pl
- .pro
- .prolog
Puppet:
type: programming
extensions:
- .pp
filenames:
- Modulefile
Pure Data:
type: programming
lexer: Text only
extensions:
- .pd
Python:
type: programming
ace_mode: python
primary_extension: .py
extensions:
- .py
- .pyw
- .wsgi
- .xpy
Python traceback:
type: data
group: Python
lexer: Python Traceback
searchable: false
extensions:
- .pytb
R:
type: programming
lexer: S
overrides:
- .r
primary_extension: .r
extensions:
- .R
- .r
RHTML:
type: markup
group: HTML
extensions:
- .rhtml
Racket:
type: programming
lexer: Scheme
primary_extension: .rkt
extensions:
- .rkt
- .rktd
- .rktl
- .scrbl
Raw token data:
search_term: raw
aliases:
- raw
extensions:
- .raw
Rebol:
type: programming
lexer: REBOL
extensions:
- .r
- .r2
- .r3
- .rebol
Redcode:
extensions:
- .cw
Ruby:
type: programming
ace_mode: ruby
aliases:
- jruby
- macruby
- rake
- rb
- rbx
primary_extension: .rb
extensions:
- .builder
- .gemspec
- .god
- .irbrc
- .podspec
- .rake
- .rb
- .rbuild
- .rbw
- .rbx
- .ru
- .thor
- .watchr
filenames:
- Capfile
- Gemfile
- Guardfile
- Podfile
- Rakefile
- Thorfile
- Vagrantfile
Rust:
type: programming
lexer: Text only
extensions:
- .rs
SCSS:
type: markup
group: CSS
ace_mode: scss
extensions:
- .scss
SQL:
type: data
ace_mode: sql
searchable: false
extensions:
- .sql
Sage:
type: programming
lexer: Python
group: Python
extensions:
- .sage
Sass:
type: markup
group: CSS
extensions:
- .sass
Scala:
type: programming
ace_mode: scala
primary_extension: .scala
extensions:
- .sbt
- .scala
Scheme:
type: programming
primary_extension: .scm
extensions:
- .scm
- .sls
- .sps
- .ss
Scilab:
type: programming
primary_extension: .sci
extensions:
- .sce
- .tst
Self:
type: programming
lexer: Text only
extensions:
- .self
Shell:
type: programming
lexer: Bash
search_term: bash
aliases:
- sh
- bash
- zsh
primary_extension: .sh
extensions:
- .bash
- .sh
- .zsh
filenames:
- .bash_profile
- .bashrc
- .profile
- .zlogin
- .zsh
- .zshrc
- bashrc
- zshrc
Smalltalk:
type: programming
extensions:
- .st
Smarty:
extensions:
- .tpl
Standard ML:
type: programming
aliases:
- sml
primary_extension: .sml
extensions:
- .sig
- .sml
SuperCollider:
type: programming
lexer: Text only
extensions:
- .sc
Tcl:
type: programming
extensions:
- .tcl
Tcsh:
type: programming
group: Shell
primary_extension: .tcsh
extensions:
- .csh
- .tcsh
TeX:
type: markup
ace_mode: latex
primary_extension: .tex
overrides:
- .cls
extensions:
- .aux
- .cls
- .dtx
- .ins
- .ltx
- .sty
- .tex
- .toc
Tea:
type: markup
extensions:
- .tea
Text:
type: data
lexer: Text only
ace_mode: text
extensions:
- .txt
Textile:
type: markup
lexer: Text only
ace_mode: textile
extensions:
- .textile
Turing:
type: programming
lexer: Text only
extensions:
- .t
- .tu
Twig:
type: markup
group: PHP
lexer: HTML+Django/Jinja
extensions:
- .twig
VHDL:
type: programming
lexer: vhdl
extensions:
- .vhd
- .vhdl
Vala:
type: programming
extensions:
- .vala
- .vapi
Verilog:
type: programming
lexer: Verilog
overrides:
- .v
extensions:
- .v
VimL:
type: programming
search_term: vim
aliases:
- vim
extensions:
- .vim
filenames:
- .gvimrc
- .vimrc
- vimrc
- gvimrc
Visual Basic:
type: programming
lexer: VB.net
primary_extension: .vb
extensions:
- .bas
- .frx
- .vb
- .vba
- .vbs
XML:
type: markup
ace_mode: xml
primary_extension: .xml
extensions:
- .glade
- .kml
- .mxml
- .plist
- .rdf
- .rss
- .svg
- .wsdl
- .wxi
- .wxl
- .wxs
- .xaml
- .xlf
- .xliff
- .xml
- .xsd
- .xsl
- .xul
filenames:
- .classpath
- .project
XQuery:
type: programming
extensions:
- .xq
- .xqm
- .xquery
- .xqy
XS:
lexer: C
extensions:
- .xs
YAML:
type: markup
primary_extension: .yml
extensions:
- .yaml
- .yml
filenames:
- .gemrc
eC:
type: programming
search_term: ec
primary_extension: .ec
extensions:
- .ec
- .eh
mupad:
lexer: MuPAD
extensions:
- .mu
ooc:
type: programming
lexer: Ooc
extensions:
- .ooc
reStructuredText:
type: markup
search_term: rst
aliases:
- rst
extensions:
- .rst
- .rest
Something went wrong with that request. Please try again.