Skip to content

Commit

Permalink
Rename the Nimrod lexer to Nim
Browse files Browse the repository at this point in the history
It has been the official name of the language for a while now.
  • Loading branch information
Calinou committed Sep 25, 2017
1 parent bdc1124 commit 8604f25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`._
Expand Down
6 changes: 3 additions & 3 deletions lexers/nimrod.go → lexers/nim.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
2 changes: 1 addition & 1 deletion pygments-lexers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8604f25

Please sign in to comment.