diff options
| author | orbitalquark <70453897+orbitalquark@users.noreply.github.com> | 2024-09-18 14:42:10 -0400 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-04 12:32:42 -0700 |
| commit | e54caf087cecda02b625b5d5d51c667746002a3e (patch) | |
| tree | cd2b87153910798247aa7611b7a6e4f926082b55 /lua/lexers/lexer.lua | |
| parent | c1f4d3f68787fa2ae964c468d28a84df37319b28 (diff) | |
| download | vis-e54caf087cecda02b625b5d5d51c667746002a3e.tar.gz vis-e54caf087cecda02b625b5d5d51c667746002a3e.tar.xz | |
Rename 'ansi_c', 'dmd', and 'rstats' lexers to 'c', 'd', and 'r'
Originally this was to prevent clashes with Textadept's language-specific key handling, but this is
no longer applicable.
Diffstat (limited to 'lua/lexers/lexer.lua')
| -rw-r--r-- | lua/lexers/lexer.lua | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lua/lexers/lexer.lua b/lua/lexers/lexer.lua index 2ea6492..0faeae9 100644 --- a/lua/lexers/lexer.lua +++ b/lua/lexers/lexer.lua @@ -50,9 +50,6 @@ -- lexer should be the name of your programming language in lower case followed by a *.lua* -- extension. For example, a new Lua lexer has the name *lua.lua*. -- --- Note: Try to refrain from using one-character language names like "c", "d", or "r". For --- example, Scintillua uses "ansi_c", "dmd", and "rstats", respectively. --- -- #### New Lexer Template -- -- There is a *lexers/template.txt* file that contains a simple template for a new lexer. Feel @@ -1612,8 +1609,8 @@ function M.detect(filename, line) bib = 'bibtex', -- boo = 'boo', -- cs = 'csharp', -- - c = 'ansi_c', C = 'ansi_c', cc = 'cpp', cpp = 'cpp', cxx = 'cpp', ['c++'] = 'cpp', h = 'cpp', - hh = 'cpp', hpp = 'cpp', hxx = 'cpp', ['h++'] = 'cpp', -- + c = 'c', C = 'c', cc = 'cpp', cpp = 'cpp', cxx = 'cpp', ['c++'] = 'cpp', h = 'cpp', hh = 'cpp', + hpp = 'cpp', hxx = 'cpp', ['h++'] = 'cpp', -- ck = 'chuck', -- clj = 'clojure', cljs = 'clojure', cljc = 'clojure', edn = 'clojure', -- ['CMakeLists.txt'] = 'cmake', cmake = 'cmake', ['cmake.in'] = 'cmake', ctest = 'cmake', @@ -1622,7 +1619,7 @@ function M.detect(filename, line) cr = 'crystal', -- css = 'css', -- cu = 'cuda', cuh = 'cuda', -- - d = 'dmd', di = 'dmd', -- + d = 'd', di = 'd', -- dart = 'dart', -- desktop = 'desktop', -- diff = 'diff', patch = 'diff', -- @@ -1700,8 +1697,7 @@ function M.detect(filename, line) proto = 'protobuf', -- pure = 'pure', -- sc = 'python', py = 'python', pyw = 'python', -- - R = 'rstats', Rout = 'rstats', Rhistory = 'rstats', Rt = 'rstats', ['Rout.save'] = 'rstats', - ['Rout.fail'] = 'rstats', -- + R = 'r', Rout = 'r', Rhistory = 'r', Rt = 'r', ['Rout.save'] = 'r', ['Rout.fail'] = 'r', -- re = 'reason', -- r = 'rebol', reb = 'rebol', -- rst = 'rest', -- |
