##// END OF EJS Templates
compare: only warn about missing ancestor if a 'merge' diff was requested
compare: only warn about missing ancestor if a 'merge' diff was requested

File last commit:

r4030:647308db default
r4037:48142e84 default
Show More
meta.js
305 lines | 13.4 KiB | application/javascript | JavascriptLexer
CodeMirror.modeInfo = [
{name: 'APL', mime: 'text/apl', mode: 'apl'},
{name: 'Asterisk', mime: 'text/x-asterisk', mode: 'asterisk'},
{name: 'C', mime: 'text/x-csrc', mode: 'clike'},
{name: 'C++', mime: 'text/x-c++src', mode: 'clike'},
{name: 'Cobol', mime: 'text/x-cobol', mode: 'cobol'},
{name: 'Java', mime: 'text/x-java', mode: 'clike'},
{name: 'C#', mime: 'text/x-csharp', mode: 'clike'},
{name: 'Scala', mime: 'text/x-scala', mode: 'clike'},
{name: 'Clojure', mime: 'text/x-clojure', mode: 'clojure'},
{name: 'CoffeeScript', mime: 'text/x-coffeescript', mode: 'coffeescript'},
{name: 'Common Lisp', mime: 'text/x-common-lisp', mode: 'commonlisp'},
{name: 'CSS', mime: 'text/css', mode: 'css'},
{name: 'D', mime: 'text/x-d', mode: 'd'},
{name: 'diff', mime: 'text/x-diff', mode: 'diff'},
{name: 'ECL', mime: 'text/x-ecl', mode: 'ecl'},
{name: 'Erlang', mime: 'text/x-erlang', mode: 'erlang'},
{name: 'Gas', mime: 'text/x-gas', mode: 'gas'},
{name: 'GO', mime: 'text/x-go', mode: 'go'},
{name: 'Groovy', mime: 'text/x-groovy', mode: 'groovy'},
{name: 'Haskell', mime: 'text/x-haskell', mode: 'haskell'},
{name: 'Haxe', mime: 'text/x-haxe', mode: 'haxe'},
{name: 'ASP.NET', mime: 'application/x-aspx', mode: 'htmlembedded'},
{name: 'Embedded Javascript', mime: 'application/x-ejs', mode: 'htmlembedded'},
{name: 'JavaServer Pages', mime: 'application/x-jsp', mode: 'htmlembedded'},
{name: 'HTML', mime: 'text/html', mode: 'htmlmixed'},
{name: 'HTTP', mime: 'message/http', mode: 'http'},
{name: 'JavaScript', mime: 'text/javascript', mode: 'javascript'},
{name: 'JSON', mime: 'application/x-json', mode: 'javascript'},
{name: 'JSON', mime: 'application/json', mode: 'javascript'},
{name: 'TypeScript', mime: 'application/typescript', mode: 'javascript'},
{name: 'Jinja2', mime: 'jinja2', mode: 'jinja2'},
{name: 'LESS', mime: 'text/x-less', mode: 'less'},
{name: 'LiveScript', mime: 'text/x-livescript', mode: 'livescript'},
{name: 'Lua', mime: 'text/x-lua', mode: 'lua'},
{name: 'Markdown (GitHub-flavour)', mime: 'text/x-markdown', mode: 'markdown'},
{name: 'mIRC', mime: 'text/mirc', mode: 'mirc'},
{name: 'NTriples', mime: 'text/n-triples', mode: 'ntriples'},
{name: 'OCaml', mime: 'text/x-ocaml', mode: 'ocaml'},
{name: 'Pascal', mime: 'text/x-pascal', mode: 'pascal'},
{name: 'Perl', mime: 'text/x-perl', mode: 'perl'},
{name: 'PHP', mime: 'text/x-php', mode: 'php'},
{name: 'PHP(HTML)', mime: 'application/x-httpd-php', mode: 'php'},
{name: 'Pig', mime: 'text/x-pig', mode: 'pig'},
{name: 'Plain Text', mime: 'text/plain', mode: 'null'},
{name: 'Properties files', mime: 'text/x-properties', mode: 'clike'},
{name: 'Python', mime: 'text/x-python', mode: 'python'},
{name: 'R', mime: 'text/x-rsrc', mode: 'r'},
{name: 'reStructuredText', mime: 'text/x-rst', mode: 'rst'},
{name: 'Ruby', mime: 'text/x-ruby', mode: 'ruby'},
{name: 'Rust', mime: 'text/x-rustsrc', mode: 'rust'},
{name: 'Sass', mime: 'text/x-sass', mode: 'sass'},
{name: 'Scheme', mime: 'text/x-scheme', mode: 'scheme'},
{name: 'SCSS', mime: 'text/x-scss', mode: 'css'},
{name: 'Shell', mime: 'text/x-sh', mode: 'shell'},
{name: 'Sieve', mime: 'application/sieve', mode: 'sieve'},
{name: 'Smalltalk', mime: 'text/x-stsrc', mode: 'smalltalk'},
{name: 'Smarty', mime: 'text/x-smarty', mode: 'smarty'},
{name: 'SPARQL', mime: 'application/x-sparql-query', mode: 'sparql'},
{name: 'SQL', mime: 'text/x-sql', mode: 'sql'},
{name: 'MariaDB', mime: 'text/x-mariadb', mode: 'sql'},
{name: 'sTeX', mime: 'text/x-stex', mode: 'stex'},
{name: 'LaTeX', mime: 'text/x-latex', mode: 'stex'},
{name: 'Tcl', mime: 'text/x-tcl', mode: 'tcl'},
{name: 'TiddlyWiki ', mime: 'text/x-tiddlywiki', mode: 'tiddlywiki'},
{name: 'Tiki wiki', mime: 'text/tiki', mode: 'tiki'},
{name: 'VB.NET', mime: 'text/x-vb', mode: 'vb'},
{name: 'VBScript', mime: 'text/vbscript', mode: 'vbscript'},
{name: 'Velocity', mime: 'text/velocity', mode: 'velocity'},
{name: 'Verilog', mime: 'text/x-verilog', mode: 'verilog'},
{name: 'XML', mime: 'application/xml', mode: 'xml'},
{name: 'HTML', mime: 'text/html', mode: 'xml'},
{name: 'XQuery', mime: 'application/xquery', mode: 'xquery'},
{name: 'YAML', mime: 'text/x-yaml', mode: 'yaml'},
{name: 'Z80', mime: 'text/x-z80', mode: 'z80'}
];
MIME_TO_EXT = {
'application/javascript': ['*.js'],
'text/javascript': ['*.js'],
'application/json': ['*.json'],
'application/postscript': ['*.ps', '*.eps'],
'application/x-actionscript': ['*.as'],
'application/x-actionscript3': ['*.as'],
'application/x-awk': ['*.awk'],
'application/x-befunge': ['*.befunge'],
'application/x-brainfuck': ['*.bf', '*.b'],
'application/x-cheetah': ['*.tmpl', '*.spt'],
'application/x-coldfusion': ['*.cfm', '*.cfml', '*.cfc'],
'application/x-csh': ['*.tcsh', '*.csh'],
'application/x-dos-batch': ['*.bat', '*.cmd'],
'application/x-ecl': ['*.ecl'],
'application/x-evoque': ['*.evoque'],
'application/x-fantom': ['*.fan'],
'application/x-genshi': ['*.kid'],
'application/x-gettext': ['*.pot', '*.po'],
'application/x-jsp': ['*.jsp'],
'application/x-mako': ['*.mao'],
'application/x-mason': ['*.m', '*.mhtml', '*.mc', '*.mi', 'autohandler', 'dhandler'],
'application/x-myghty': ['*.myt', 'autodelegate'],
'application/x-php': ['*.phtml'],
'application/x-pypylog': ['*.pypylog'],
'application/x-qml': ['*.qml'],
'application/x-sh': ['*.sh', '*.ksh', '*.bash', '*.ebuild', '*.eclass', '.bashrc', 'bashrc', '.bash_*', 'bash_*'],
'application/x-sh-session': ['*.shell-session'],
'application/x-shell-session': ['*.sh-session'],
'application/x-smarty': ['*.tpl'],
'application/x-ssp': ['*.ssp'],
'application/x-troff': ['*.[1234567]', '*.man'],
'application/x-urbiscript': ['*.u'],
'application/xml+evoque': ['*.xml'],
'application/xml-dtd': ['*.dtd'],
'application/xsl+xml': ['*.xsl', '*.xslt', '*.xpl'],
'text/S-plus': ['*.S', '*.R', '.Rhistory', '.Rprofile'],
'text/coffeescript': ['*.coffee'],
'text/css': ['*.css'],
'text/haxe': ['*.hx'],
'text/html': ['*.html', '*.htm', '*.xhtml', '*.xslt'],
'text/html+evoque': ['*.html'],
'text/html+ruby': ['*.rhtml'],
'text/idl': ['*.pro'],
'text/livescript': ['*.ls'],
'text/matlab': ['*.m'],
'text/octave': ['*.m'],
'text/plain': ['*.txt'],
'text/scilab': ['*.sci', '*.sce', '*.tst'],
'text/smali': ['*.smali'],
'text/x-abap': ['*.abap'],
'text/x-ada': ['*.adb', '*.ads', '*.ada'],
'text/x-apacheconf': ['.htaccess', 'apache.conf', 'apache2.conf'],
'text/x-aspectj': ['*.aj'],
'text/x-asymptote': ['*.asy'],
'text/x-autohotkey': ['*.ahk', '*.ahkl'],
'text/x-autoit': ['*.au3'],
'text/x-bmx': ['*.bmx'],
'text/x-boo': ['*.boo'],
'text/x-c++hdr': ['*.cpp', '*.hpp', '*.c++', '*.h++', '*.cc', '*.hh', '*.cxx', '*.hxx', '*.C', '*.H', '*.cp','*.CPP'],
'text/x-c-objdump': ['*.c-objdump'],
'text/x-ceylon': ['*.ceylon'],
'text/x-chdr': ['*.c', '*.h', '*.idc'],
'text/x-clojure': ['*.clj'],
'text/x-cmake': ['*.cmake', 'CMakeLists.txt'],
'text/x-cobol': ['*.cob', '*.COB', '*.cpy', '*.CPY'],
'text/x-common-lisp': ['*.cl', '*.lisp', '*.el'],
'text/x-coq': ['*.v'],
'text/x-cpp-objdump': ['*.cpp-objdump', '*.c++-objdump', '*.cxx-objdump'],
'text/x-crocsrc': ['*.croc'],
'text/x-csharp': ['*.cs'],
'text/x-cuda': ['*.cu', '*.cuh'],
'text/x-cython': ['*.pyx', '*.pxd', '*.pxi'],
'text/x-d-objdump': ['*.d-objdump'],
'text/x-dart': ['*.dart'],
'text/x-dg': ['*.dg'],
'text/x-diff': ['*.diff', '*.patch'],
'text/x-dsrc': ['*.d', '*.di'],
'text/x-duel': ['*.duel', '*.jbst'],
'text/x-dylan': ['*.dylan', '*.dyl', '*.intr'],
'text/x-dylan-console': ['*.dylan-console'],
'text/x-dylan-lid': ['*.lid', '*.hdp'],
'text/x-echdr': ['*.ec', '*.eh'],
'text/x-elixir': ['*.ex', '*.exs'],
'text/x-erl-shellsession': ['*.erl-sh'],
'text/x-erlang': ['*.erl', '*.hrl', '*.es', '*.escript'],
'text/x-factor': ['*.factor'],
'text/x-fancysrc': ['*.fy', '*.fancypack'],
'text/x-felix': ['*.flx', '*.flxh'],
'text/x-fortran': ['*.f', '*.f90', '*.F', '*.F90'],
'text/x-fsharp': ['*.fs', '*.fsi'],
'text/x-gas': ['*.s', '*.S'],
'text/x-gherkin': ['*.feature'],
'text/x-glslsrc': ['*.vert', '*.frag', '*.geo'],
'text/x-gnuplot': ['*.plot', '*.plt'],
'text/x-gooddata-cl': ['*.gdc'],
'text/x-gooddata-maql': ['*.maql'],
'text/x-gosrc': ['*.go'],
'text/x-gosu': ['*.gs', '*.gsx', '*.gsp', '*.vark'],
'text/x-gosu-template': ['*.gst'],
'text/x-groovy': ['*.groovy'],
'text/x-haml': ['*.haml'],
'text/x-haskell': ['*.hs'],
'text/x-hybris': ['*.hy', '*.hyb'],
'text/x-ini': ['*.ini', '*.cfg'],
'text/x-iokesrc': ['*.ik'],
'text/x-iosrc': ['*.io'],
'text/x-irclog': ['*.weechatlog'],
'text/x-jade': ['*.jade'],
'text/x-java': ['*.java'],
'text/x-java-properties': ['*.properties'],
'text/x-julia': ['*.jl'],
'text/x-kconfig': ['Kconfig', '*Config.in*', 'external.in*', 'standard-modules.in'],
'text/x-koka': ['*.kk', '*.kki'],
'text/x-kotlin': ['*.kt'],
'text/x-lasso': ['*.lasso', '*.lasso[89]'],
'text/x-literate-haskell': ['*.lhs'],
'text/x-llvm': ['*.ll'],
'text/x-logos': ['*.x', '*.xi', '*.xm', '*.xmi'],
'text/x-logtalk': ['*.lgt'],
'text/x-lua': ['*.lua', '*.wlua'],
'text/x-makefile': ['*.mak', 'Makefile', 'makefile', 'Makefile.*', 'GNUmakefile'],
'text/x-minidsrc': ['*.md'],
'text/x-markdown': ['*.md'],
'text/x-modelica': ['*.mo'],
'text/x-modula2': ['*.def', '*.mod'],
'text/x-monkey': ['*.monkey'],
'text/x-moocode': ['*.moo'],
'text/x-moonscript': ['*.moon'],
'text/x-nasm': ['*.asm', '*.ASM'],
'text/x-nemerle': ['*.n'],
'text/x-newlisp': ['*.lsp', '*.nl'],
'text/x-newspeak': ['*.ns2'],
'text/x-nimrod': ['*.nim', '*.nimrod'],
'text/x-nsis': ['*.nsi', '*.nsh'],
'text/x-objdump': ['*.objdump'],
'text/x-objective-c': ['*.m', '*.h'],
'text/x-objective-c++': ['*.mm', '*.hh'],
'text/x-objective-j': ['*.j'],
'text/x-ocaml': ['*.ml', '*.mli', '*.mll', '*.mly'],
'text/x-ooc': ['*.ooc'],
'text/x-opa': ['*.opa'],
'text/x-openedge': ['*.p', '*.cls'],
'text/x-pascal': ['*.pas'],
'text/x-perl': ['*.pl', '*.pm'],
'text/x-php': ['*.php', '*.php[345]', '*.inc'],
'text/x-povray': ['*.pov', '*.inc'],
'text/x-powershell': ['*.ps1'],
'text/x-prolog': ['*.prolog', '*.pro', '*.pl'],
'text/x-python': ['*.py', '*.pyw', '*.sc', 'SConstruct', 'SConscript', '*.tac', '*.sage'],
'text/x-python-traceback': ['*.pytb'],
'text/x-python3-traceback': ['*.py3tb'],
'text/x-r-doc': ['*.Rd'],
'text/x-racket': ['*.rkt', '*.rktl'],
'text/x-rebol': ['*.r', '*.r3'],
'text/x-robotframework': ['*.txt', '*.robot'],
'text/x-rpm-spec': ['*.spec'],
'text/x-rst': ['*.rst', '*.rest'],
'text/x-ruby': ['*.rb', '*.rbw', 'Rakefile', '*.rake', '*.gemspec', '*.rbx', '*.duby'],
'text/x-rustsrc': ['*.rs', '*.rc'],
'text/x-sass': ['*.sass'],
'text/x-scala': ['*.scala'],
'text/x-scaml': ['*.scaml'],
'text/x-scheme': ['*.scm', '*.ss'],
'text/x-scss': ['*.scss'],
'text/x-smalltalk': ['*.st'],
'text/x-snobol': ['*.snobol'],
'text/x-sourcepawn': ['*.sp'],
'text/x-sql': ['*.sql'],
'text/x-sqlite3-console': ['*.sqlite3-console'],
'text/x-squidconf': ['squid.conf'],
'text/x-standardml': ['*.sml', '*.sig', '*.fun'],
'text/x-systemverilog': ['*.sv', '*.svh'],
'text/x-tcl': ['*.tcl'],
'text/x-tea': ['*.tea'],
'text/x-tex': ['*.tex', '*.aux', '*.toc'],
'text/x-typescript': ['*.ts'],
'text/x-vala': ['*.vala', '*.vapi'],
'text/x-vbnet': ['*.vb', '*.bas'],
'text/x-verilog': ['*.v'],
'text/x-vhdl': ['*.vhdl', '*.vhd'],
'text/x-vim': ['*.vim', '.vimrc', '.exrc', '.gvimrc', '_vimrc', '_exrc', '_gvimrc', 'vimrc', 'gvimrc'],
'text/x-windows-registry': ['*.reg'],
'text/x-xtend': ['*.xtend'],
'text/x-yaml': ['*.yaml', '*.yml'],
'text/xml': ['*.xml', '*.xsl', '*.rss', '*.xslt', '*.xsd', '*.wsdl'],
'text/xquery': ['*.xqy', '*.xquery', '*.xq', '*.xql', '*.xqm'],
'text/apl': [],
'text/x-asterisk': [],
'text/x-csrc': [],
'text/x-c++src': ['*.cpp'],
'text/x-coffeescript': ['*.coffee'],
'text/x-d': ["*.d"],
'text/x-ecl': ['*.ecl'],
'text/x-go': ['*.go'],
'text/x-haxe': ['*.hx'],
'application/x-aspx': ['*.aspx'],
'application/x-ejs': [],
'message/http': [],
'application/x-json': ['*.json'],
'application/typescript': ['*.ts'],
'jinja2': ['.jinja2'],
'text/x-less': ['*.less'],
'text/x-livescript': ['*.ls'],
'text/mirc': [],
'text/n-triples': [],
'application/x-httpd-php': ['*.php'],
'text/x-pig': [],
'text/x-properties': ['*.properties'],
'text/x-rsrc': [],
'text/x-sh': ['*.sh', '*.ksh', '*.bash', '*.ebuild', '*.eclass', '.bashrc', 'bashrc', '.bash_*', 'bash_*'],
'application/sieve': [],
'text/x-stsrc': ['*.rs', '*.rc'],
'text/x-smarty': ['*.tpl'],
'application/x-sparql-query': [],
'text/x-mariadb': ['*.sql'],
'text/x-stex': [],
'text/x-latex': ["*.ltx"],
'text/x-tiddlywiki': [],
'text/tiki': [],
'text/x-vb': ['*.vb'],
'text/vbscript': ['*.vb'],
'text/velocity': [],
'application/xml': ['*.xml', '*.xsl', '*.rss', '*.xslt', '*.xsd', '*.wsdl'],
'application/xquery': ['*.xqy', '*.xquery', '*.xq', '*.xql', '*.xqm'],
'text/x-z80': [],
}