mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 03:59:46 -06:00
If `languageId` is not defined, the syntax highlighting in the Monaco editor panel defaults to **ASM**. This pull request creates a `no-highlight-mode` with **no syntax highlighting**. This mode can be used when the syntax highlighting is not required. In this PR I've also updated the result of Carbon Language to use this `no-highlight-mode` as the **ASM** syntax highlighting wasn't matching the execution trace of Carbon Explorer.
64 lines
2.3 KiB
TypeScript
64 lines
2.3 KiB
TypeScript
// Copyright (c) 2021, Compiler Explorer Authors
|
|
// All rights reserved.
|
|
//
|
|
// Redistribution and use in source and binary forms, with or without
|
|
// modification, are permitted provided that the following conditions are met:
|
|
//
|
|
// * Redistributions of source code must retain the above copyright notice,
|
|
// this list of conditions and the following disclaimer.
|
|
// * Redistributions in binary form must reproduce the above copyright
|
|
// notice, this list of conditions and the following disclaimer in the
|
|
// documentation and/or other materials provided with the distribution.
|
|
//
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
// POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
import './ada-mode';
|
|
import './asm6502-mode';
|
|
import './asm-mode';
|
|
import './asmruby-mode';
|
|
import './c3-mode';
|
|
import './carbon-mode';
|
|
import './clean-mode';
|
|
import './cmake-mode';
|
|
import './cobol-mode';
|
|
import './cppcircle-mode';
|
|
import './cpp-for-opencl-mode';
|
|
import './cppfront-mode';
|
|
import './cppp-mode';
|
|
import './cppx-blue-mode';
|
|
import './cppx-gold-mode';
|
|
import './crystal-mode';
|
|
import './cuda-mode';
|
|
import './d-mode';
|
|
import './no-highlight-mode';
|
|
import './erlang-mode';
|
|
import './fortran-mode';
|
|
import './gccdump-rtl-gimple-mode';
|
|
import './haskell-mode';
|
|
import './hlsl-mode';
|
|
import './hook-mode';
|
|
import './ispc-mode';
|
|
import './jakt-mode';
|
|
import './llvm-ir-mode';
|
|
import './mlir-mode';
|
|
import './modula2-mode';
|
|
import './nc-mode';
|
|
import './nim-mode';
|
|
import './ocaml-mode';
|
|
import './openclc-mode';
|
|
import './ptx-mode';
|
|
import './spirv-mode';
|
|
import './v-mode';
|
|
import './vala-mode';
|
|
import './zig-mode';
|