1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-09-16 09:16:32 +02:00

Rename the Nimrod lexer to Nim

It has been the official name of the language for a while now.
This commit is contained in:
Hugo Locurcio
2017-09-25 20:08:20 +02:00
parent bdc1124369
commit 8604f257c9
3 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ translaters for Pygments lexers and styles.
## Supported languages
ABNF, ANTLR, APL, ActionScript, ActionScript 3, Ada, Angular2, ApacheConf, AppleScript, Awk, BNF, Base Makefile, Bash, Batchfile, BlitzBasic, Brainfuck, C, C++, CFEngine3, CMake, COBOL, CSS, Cap'n Proto, Ceylon, ChaiScript, Cheetah, Clojure, CoffeeScript, Common Lisp, Coq, Crystal, Cython, DTD, Dart, Diff, Django/Jinja, Docker, EBNF, Elixir, Elm, EmacsLisp, Erlang, FSharp, Factor, Fish, Forth, Fortran, GAS, GLSL, Genshi, Genshi HTML, Genshi Text, Gnuplot, Go, Groovy, HTML, Handlebars, Haskell, Haxe, Hy, INI, Idris, Io, JSON, Java, JavaScript, Julia, Kotlin, LLVM, Lighttpd configuration file, Lua, Mako, Mason, Mathematica, Modula-2, MySQL, Myghty, NASM, Newspeak, Nginx configuration file, Nimrod, OCaml, Octave, PHP, PL/pgSQL, POVRay, PacmanConf, Perl, Pig, PkgConfig, PostScript, PostgreSQL SQL dialect, PowerShell, Prolog, Protocol Buffer, Puppet, Python, Python 3, QBasic, R, Racket, Ragel, Rexx, Ruby, Rust, SPARQL, SQL, Sass, Scala, Scheme, Scilab, Smalltalk, Smarty, Snobol, SquidConf, Swift, TASM, Tcl, Tcsh, Termcap, Terminfo, Terraform, Thrift, Transact-SQL, Turtle, Twig, TypeScript, TypoScript, TypoScriptCssData, TypoScriptHtmlData, VimL, XML, Xorg, cfstatement, markdown, reg, verilog, vhdl
ABNF, ANTLR, APL, ActionScript, ActionScript 3, Ada, Angular2, ApacheConf, AppleScript, Awk, BNF, Base Makefile, Bash, Batchfile, BlitzBasic, Brainfuck, C, C++, CFEngine3, CMake, COBOL, CSS, Cap'n Proto, Ceylon, ChaiScript, Cheetah, Clojure, CoffeeScript, Common Lisp, Coq, Crystal, Cython, DTD, Dart, Diff, Django/Jinja, Docker, EBNF, Elixir, Elm, EmacsLisp, Erlang, FSharp, Factor, Fish, Forth, Fortran, GAS, GLSL, Genshi, Genshi HTML, Genshi Text, Gnuplot, Go, Groovy, HTML, Handlebars, Haskell, Haxe, Hy, INI, Idris, Io, JSON, Java, JavaScript, Julia, Kotlin, LLVM, Lighttpd configuration file, Lua, Mako, Mason, Mathematica, Modula-2, MySQL, Myghty, NASM, Newspeak, Nginx configuration file, Nim, OCaml, Octave, PHP, PL/pgSQL, POVRay, PacmanConf, Perl, Pig, PkgConfig, PostScript, PostgreSQL SQL dialect, PowerShell, Prolog, Protocol Buffer, Puppet, Python, Python 3, QBasic, R, Racket, Ragel, Rexx, Ruby, Rust, SPARQL, SQL, Sass, Scala, Scheme, Scilab, Smalltalk, Smarty, Snobol, SquidConf, Swift, TASM, Tcl, Tcsh, Termcap, Terminfo, Terraform, Thrift, Transact-SQL, Turtle, Twig, TypeScript, TypoScript, TypoScriptCssData, TypoScriptHtmlData, VimL, XML, Xorg, cfstatement, markdown, reg, verilog, vhdl
_I will attempt to keep this section up to date, but an authoritative list can be
displayed with `chroma --list`._

View File

@@ -4,10 +4,10 @@ import (
. "github.com/alecthomas/chroma" // nolint
)
// Nimrod lexer.
var Nimrod = Register(MustNewLexer(
// Nim lexer.
var Nim = Register(MustNewLexer(
&Config{
Name: "Nimrod",
Name: "Nim",
Aliases: []string{"nim", "nimrod"},
Filenames: []string{"*.nim", "*.nimrod"},
MimeTypes: []string{"text/x-nim"},

View File

@@ -209,7 +209,7 @@ pygments.lexers.lisp.ShenLexer
pygments.lexers.lisp.XtlangLexer
pygments.lexers.modula2.Modula2Lexer
pygments.lexers.ncl.NCLLexer
pygments.lexers.nimrod.NimrodLexer
pygments.lexers.nim.NimLexer
pygments.lexers.nit.NitLexer
pygments.lexers.nix.NixLexer
pygments.lexers.oberon.ComponentPascalLexer