"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/filetypes.conf" (12 May 2020, 8547 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "filetypes.conf": 3.54_vs_3.55.

    1 -- File extension and shebang mapping
    2 --
    3 -- Add an entry for a language syntax which is occupied by multiple source file extensions.
    4 -- If there is only one extension, just name the lang file accordingly and it will work (no entry needed here).
    5 -- The filetype entries in gui_files/ext/fileopenfilter.conf should also be updated for the GUI file dialogs.
    6 --
    7 -- Extensions can be configured for multiple languages (see "asm", which is assigned to assembler and fasm).
    8 -- The command line (CLI) and Qt GUI builds handle ambiguous assignments as follows:
    9 --  - CLI: the first association listed here will be used
   10 --  - GUI: a syntax selection prompt will be shown
   11 --
   12 -- If a filename has no extension by convention (ie. makefile), it may be added here nevertheless or be 
   13 -- configured as "Shebang".
   14 --
   15 -- You can assign complete filenames to a syntax, see the "cmake" entry.
   16 --
   17 -- A default input encoding can be set with an EncodingHint attribute (requires v. 3.55).
   18 --
   19 -- The first filetypes.conf found in a highlight search directory wins. See README.adoc for search dirs.
   20 --
   21 -- You can override specific settings in ~/.highlight/filetypes.conf like this:
   22 --
   23 -- dofile "/etc/highlight/filetypes.conf"
   24 --
   25 -- table.insert(FileMapping, { Lang="yourlang", Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?yourlang]] })
   26 
   27 FileMapping = {
   28 
   29  { Lang="ada",  Extensions={"adb", "ads", "a", "gnad"} },
   30  { Lang="alan", Extensions={"alan", "i"} },
   31  { Lang="algol",  Extensions={"alg"} },
   32  { Lang="ampl", Extensions={"dat", "run"} },
   33  { Lang="amtrix", Extensions={"s4", "s4t", "s4h", "hnd", "t4"} },
   34  { Lang="assembler", Extensions={"asm", "a51", "29k", "68s", "68x", "x86"} },
   35  { Lang="fasm", Extensions={"asm", "inc"} },
   36  { Lang="asp", Extensions={"aspx", "ashx", "ascx"} },
   37  { Lang="ats", Extensions={"dats"} },
   38  { Lang="aspect", Extensions={"was", "wud"} },
   39  { Lang="ballerina", Extensions={"bal"} },
   40  { Lang="bat", Extensions={"cmd"} },
   41  { Lang="c", Extensions={"c++", "cpp", "cxx", "cc", "h", "hh", "hxx", "hpp", "cu", "inl", "ipp"} },
   42  { Lang="cmake", Filenames={"CMakeLists.txt"} },
   43  { Lang="charmm", Extensions={"inp"} },
   44  { Lang="coldfusion", Extensions={"cfc","cfm"} },
   45  { Lang="cobol", Extensions={"cob", "cbl"} },
   46  { Lang="crystal", Extensions={"cr"} },
   47  { Lang="conf", Extensions={"anacrontab"} },
   48  { Lang="delphi", Extensions={"pas", "dpr"} },
   49  { Lang="diff", Extensions={"patch"} },
   50  { Lang="docker", Extensions={"dockerfile"} },
   51  { Lang="dts", Extensions={"dtsi"} },
   52  { Lang="eiffel", Extensions={"e", "se"} },
   53  { Lang="elixir", Extensions={"ex", "exs"} },
   54  { Lang="erlang", Extensions={"hrl", "erl"} },
   55  { Lang="euphoria", Extensions={"ex", "exw", "wxu", "ew", "eu"} },
   56  { Lang="fortran77", Extensions={"f", "for", "ftn"} },
   57  { Lang="fortran90", Extensions={"f95", "f90"} },
   58  { Lang="gambas", Extensions={"class"} },
   59  { Lang="gdscript", Extensions={"gd"} },
   60  { Lang="haskell", Extensions={"hs"} },
   61  { Lang="hugo", Extensions={"hug"} },
   62  { Lang="ini", Extensions={"doxyfile", "desktop", "kdev3", "reg", "cfg", "inf"} },
   63  { Lang="java", Extensions={"groovy", "grv", "jenkinsfile", "gradle"} },
   64  { Lang="julia", Extensions={"jl"} },
   65  { Lang="kotlin", Extensions={"kt", "kts"} },
   66  { Lang="limbo", Extensions={"b"} },
   67  { Lang="lisp", Extensions={"cl", "clisp", "el", "lsp", "sbcl", "scom", "fas", "scm", "mud", "fasl" } },
   68  { Lang="make", Extensions={"mak", "mk", "makefile", "gnumakefile"} },
   69  { Lang="meson", Filenames={ "meson.build", "meson_options.txt" } },
   70  { Lang="snmp", Extensions={"mib", "smi"} },
   71  { Lang="ocaml", Extensions={"ml","mli"} },
   72  { Lang="mod2", Extensions={"mod", "def"} },
   73  { Lang="mod3", Extensions={"m3", "i3"} },
   74  { Lang="oberon", Extensions={"ooc"} },
   75  { Lang="php", Extensions={"php3", "php4", "php5", "php6", "php7", "phps", "phpt"} },
   76  { Lang="pike", Extensions={"pmod"} },
   77  { Lang="pl1", Extensions={"ff", "fp", "fpp", "rpp","sf", "sp", "spb",
   78                "spp","sps", "wp", "wf", "wpp","wps","wpb","bdy","spe"} },
   79  { Lang="perl", Extensions={"pl","perl", "cgi", "pm", "plx", "plex"} },
   80  { Lang="polygen",  Extensions={"grm"} },
   81  { Lang="pro", Extensions={"pro"} },
   82  { Lang="qmake", Extensions={"pro"} },
   83  { Lang="progress", Extensions={"p", "i", "w"} },
   84  { Lang="ruby", Extensions={"rb","ruby", "pp", "rjs", "gemfile", "rakefile", "appfile", "appraisals", "berksfile", 
   85                  "brewfile", "capfile", "cgi", "cheffile", "config.ru", "deliverfile", "fastfile", "fcgi", "gemspec",
   86                  "guardfile", "irbrc", "jbuilder", "podfile", "podspec", "prawn", "rabl", "rake", "rantfile", "rbx", 
   87                  "scanfile", "simplecov", "snapfile", "thor", "thorfile", "vagrantfile" } },
   88  { Lang="rexx", Extensions={"rex", "rx", "the"} },
   89  { Lang="sh", Extensions={"bash", "zsh", "ebuild", "eclass"} },
   90  { Lang="smalltalk", Extensions={"st", "gst", "sq"} },
   91  { Lang="sybase", Extensions={"sp"} },
   92  { Lang="tcl", Extensions={"wish", "itcl"} },
   93  { Lang="tex", Extensions={"sty", "cls"} },
   94  { Lang="vb", Extensions={"bas", "basic", "bi", "vbs"} },
   95  { Lang="verilog", Extensions={"v"} },
   96  { Lang="html", Extensions={"htm", "xhtml", "twig", "jinja"} },
   97  { Lang="xml", Extensions={"sgm", "sgml", "nrm", "ent","hdr", "hub", "dtd", "glade",
   98                "wml","vxml", "wml", "tld", "csproj","xsl", "ecf", "jnlp", "xsd", 
   99                "resx", "rss", "opml"} },
  100  { Lang="fsharp", Extensions={"fs","fsi","fsx"} },
  101  { Lang="informix", Extensions={"4gl"} },
  102  { Lang="blitzbasic", Extensions={"bb"} },
  103  { Lang="innosetup", Extensions={"iss"} },
  104  { Lang="lotus", Extensions={"ls"} },
  105  { Lang="ascend", Extensions={"a4c"} },
  106  { Lang="actionscript", Extensions={"as"} },
  107  { Lang="express", Extensions={"exp"} },
  108  { Lang="haxe", Extensions={"hx"} },
  109  { Lang="pyrex", Extensions={"pyx"} },
  110 
  111  { Lang="abap4", Extensions={"abp"} },
  112  { Lang="csharp", Extensions={"cs"} },
  113  { Lang="interlis", Extensions={"ili"} },
  114  { Lang="logtalk", Extensions={"lgt"} },
  115  { Lang="matlab", Extensions={"m"} },
  116  { Lang="nsis", Extensions={"nsi", "nsh"} },
  117  { Lang="bison", Extensions={"y"} },
  118  { Lang="squirrel", Extensions={"nut"} },
  119  { Lang="luban", Extensions={"lbn"} },
  120  { Lang="maya", Extensions={"mel"} },
  121  { Lang="nemerle", Extensions={"n"} },
  122  { Lang="paradox", Extensions={"sc"} },
  123  { Lang="netrexx", Extensions={"nrx"} },
  124  { Lang="clearbasic", Extensions={"cb"} },
  125  { Lang="graphviz", Extensions={"dot"} },
  126  { Lang="small", Extensions={"sma"} },
  127  { Lang="autoit", Extensions={"au3"} },
  128  { Lang="chill", Extensions={"chl"} },
  129  { Lang="autohotkey", Extensions={"ahk"} },
  130  { Lang="fame", Extensions={"fame"} },
  131  { Lang="modelica", Extensions={"mo"} },
  132  { Lang="maple", Extensions={"mpl"} },
  133  { Lang="jasmin", Extensions={"j"} },
  134  { Lang="snobol", Extensions={"sno"} },
  135  { Lang="icon", Extensions={"icn"} },
  136  { Lang="felix", Extensions={"flx"} },
  137  { Lang="lindenscript", Extensions={"lsl"} },
  138  { Lang="lilypond", Extensions={"ly"} },
  139  { Lang="nasal", Extensions={"nas"} },
  140  { Lang="clean", Extensions={"icl"} },
  141  { Lang="bibtex", Extensions={"bib"} },
  142  { Lang="python", Extensions={"py", "py3",  "pyw", "pyi", "pyx", "pxd", "pxi", "rpy", "cpy", 
  143                               "sconstruct", "gyp", "gypi", "snakefile", "wscript" } },
  144  { Lang="python", Filenames={"SConstruct"} },
  145  { Lang="txt", Extensions={"text"} },
  146  { Lang="n3", Extensions={"ttl", "nt"} },
  147  { Lang="biferno", Extensions={"bfr"} },
  148  { Lang="scilab", Extensions={"sci", "sce"} },
  149  { Lang="msl", Extensions={"nbs"} },
  150  { Lang="yaml", Extensions={"yml"} },
  151  { Lang="vimscript", Extensions={"vim", "vimrc"} },
  152  { Lang="purebasic",  Extensions={"pb", "pbi", "pbf"} },
  153  { Lang="markdown",  Extensions={"md", "markdown"} },
  154  { Lang="clojure",  Extensions={"clj", "cljc", "cljs", "edn"} },
  155  { Lang="solidity",  Extensions={"sol"} },
  156  { Lang="ps1", Extensions={"psm1", "psd1"} },
  157  
  158  { Lang="exapunks", Extensions={"exapunks", "exa"} },
  159  { Lang="exapunks", Shebang=[[^(?i:NOTE\sEXAPUNKS)\b]] },
  160 
  161  { Lang="xml", Shebang=[[^\s*<\?xml\s+version=\"1\.0\"\s+[^(>)]*?>\s*$]] },
  162  { Lang="sh",  Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?([bd]ash|t?csh|[akz]?sh)]] },
  163  { Lang="make",Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?make]] },
  164  { Lang="awk", Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?[gnm]?awk]] },
  165  { Lang="perl",  Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?perl]] },
  166  { Lang="python",  Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?python]] },
  167  { Lang="ruby",  Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?ruby]] },
  168  { Lang="php", Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?php]] },
  169  { Lang="js", Shebang=[[^#!\s*(/usr)?(/local)?/bin/(env\s+)?node]] }
  170 }
  171