Commit Graph
75 Commits
Author SHA1 Message Date
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Jason Zheng 750f076f8d Add generic keywords to OpenCL C and C++ for OpenCL (#2869)
The generic and __generic keywords are currently reserved in the OpenCL C
specification. They have already been added as keywords in Clang. Without
highlighting, it can seem as if generic is not an address space, as the
other address spaces are highlighted. This can be seen in the AST viewer
on Compiler Explorer. The lack of highlighting makes the AST less convenient
from a user-perspective.

C++ for OpenCL inherits address space behavior from OpenCL C v2.0 s6.5, so
this change applies to both OpenCL C and C++ for OpenCL.
2021-08-24 15:23:28 +02:00
Quinton Miller 7e1835fa0f Add support for Ruby (#2816) 2021-07-30 16:29:37 -04:00
RabsRincon 2c92738f0d Alphabetically reorder _all.js modes imports 2021-07-27 11:01:16 +02:00
RabsRincon 6cd6a37f86 Rename all-editor-modes.js to _all.js 2021-07-27 10:41:16 +02:00
Matt Godbolt 8172d95892 Tweaks to amazon config 2021-07-25 21:40:45 -05:00
Michał Cichoń 3bce751739 Add support for Circle (https://www.circle-lang.org/) (#2808)
* Add support for circle-lang (closes #1845)
* Add circle-128 version.
* Support keywords starting with @ (thanks Matt!)
2021-07-25 21:26:00 -05:00
RabsRincon db6626e3e8 Reassign my copyright to Compiler Explorer Authors 2021-07-24 00:51:34 +02:00
RabsRincon 9389bec2c0 Move editor moves to a single file 2021-07-23 05:00:51 +02:00
Quinton Miller 9829915b27 Improve handling of Crystal's quoted labels (#2789) 2021-07-19 21:51:43 -05:00
Jason Zheng 18a03e5577 Add C++ for OpenCL language (#2771) 2021-07-13 09:24:13 -05:00
partouf 2eebf0372f lint fixes 2021-07-08 14:40:41 +00:00
Quinton MillerandPatrick Quist 94ecb093a0 Add Crystal support (#2732)
* Add Crystal support

* Fix copyright

* Add ASM parser for Crystal

* Add supportsLibraryCodeFilter

* Update crystal-mode.js

* use baseName

* Force `square` call

* Update default snippet

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-07-08 00:23:48 +02:00
Jason Zheng 70cb841daf Add OpenCL C language (#2752) 2021-07-06 08:32:22 -05:00
Matt Godbolt 197ee6a734 Fix copyright date 2021-06-26 11:10:24 -05:00
Matt Godbolt 8c2bed4819 Updates to better support cppx-blue
With @hsutter
2021-06-25 17:23:51 -05:00
Matt Godbolt d96bd4eb99 Now we're using monaco 0.24.0 we can remove this and close #879 2021-05-27 22:02:20 -05:00
Matt Godbolt 5da8e09b71 Temporary workaround for #879 2021-03-28 16:49:42 -05:00
Matt Godbolt d2ccba8926 Upgrade to monaco 0.23
* Fixes a few cases where we weren't require()ing monaco
* Removes unneeded change to cppp now it's been upstreamed.

Closes #878
2021-03-28 16:08:48 -05:00
partouf a67100a717 fixes #2454 2021-03-13 16:28:41 +00:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05:00
sdgoodrick a41d7becf6 add support for cppx blue and gold languages (#2144) 2020-08-20 16:27:15 +02:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
pbrubakerandPete Brubaker d1a48657fe Update ispc-mode.js (#2108)
* Update ispc-mode.js
* Add uint* types for syntax highlighting.
* add size_t

Co-authored-by: Pete Brubaker <pete.brubaker@intel.com>
2020-07-30 10:45:38 -05:00
Matt Godbolt 042ccaeb2a Fix up lint error 2020-02-26 08:32:23 -06:00
Eyal Rozenberg c212b32ebe Added missing CUDA keywords
CUDA has some more keywords beyond the three you listed; see the [programming guide](https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html). I've added the missing ones (hopefully that covers them all).
2020-02-25 12:43:41 +02:00
Austin MortonandRubén Rincón Blanco 7ce90a3388 Update to latest monaco webpack plugin (#1836)
* Update to latest monaco webpack plugin to get content hashes on worker script path
* Move to Monaco built-in Pascal mode

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2020-02-17 17:09:47 -05:00
Ray Imber 3194ccd575 Fix some edge cases around bracket tokenization in the Nim syntax definition for monaco. Closes #1781 2020-01-13 17:56:47 -08:00
Ray Imber 0a68503d9c Fix linter errors. 2020-01-02 14:44:48 -08:00
Ray Imber a255a4a861 Added Monaco editor syntax highlight support for Nim. 2020-01-02 13:31:49 -08:00
bastien penavayre 3492287638 Add support for Nim language
- Add language
- Adds Nim compiler
- supports js, c, c++ outputs (objc not tested)
- prevent --run option
- Basic test for nim

Todos:
- monaco profile for Nim
2019-12-26 11:03:20 +01:00
emekoi 5b0f785ad7 updated zig compiler and syntax file 2019-10-17 08:28:13 -05:00
RabsRincon 714a866de3 Fix lint complaints 2019-08-09 12:26:32 +02:00
Rubén Rincón Blanco 9e7da4062f Add missing constinit keyword 2019-08-09 00:52:35 +02:00
RabsRincon 304e4a2ee7 Add C++20 keywords 2019-08-08 21:31:42 +02:00
RabsRincon d7f2149137 Require monaco on 6502 mode definition 2019-07-27 06:24:03 +02:00
RabsRincon 39b2a2e33d Merge branch 'master' into monaco-webpack 2019-07-27 06:22:19 +02:00
Partouf f418ebe0b5 new asm language syntax for 6502 assembly 2019-07-27 02:02:29 +02:00
RabsRincon 8015e5f7de Adress PR comments 2019-07-22 15:15:58 +02:00
RabsRincon 6a9095ff02 First steps towards using Monaco with webpack 2019-07-22 14:37:49 +02:00
RabsRincon e6c8c6e8de Fix for C++ annotations
Closes #1491
2019-07-12 18:45:24 +02:00
Matt Godbolt 2d0ec73569 Fix for cppp comment handling in the new monaco world. (CC @rabsrincon) 2019-07-11 22:03:07 -05:00
RabsRincon 6a8c67ff2a Upgrade to Monaco 0.17 2019-07-10 21:58:42 +02:00
Lzu Tao 321c69d1e0 Update rust keywords: Add async/await/try 2019-06-13 09:28:34 +07:00
Matt Godbolt 895bfd5913 Compiler Explorer Team->Authors (for consistency) 2019-05-30 16:33:07 -05:00
Partouf 3b8a2f0fc5 improved comment detection in pascal mode 2019-04-15 17:35:55 +02:00
Matt Godbolt eb0a45d71f * Add 6502 support
Kills consecutive blank lines in asm output. Handles labels and
opcodes on the same line. Adds cc65 compiler support.

See #82
2019-03-31 11:45:51 -05:00
Matt Godbolt 2e7fc5fe80 Super minor tweaks to @bugwelle's awesome PR for LLVM IR mode! 2019-03-21 21:28:43 -05:00
Sebastian Staffa a36e23ca79 Fix cuda disassembly code highlighting
+ Fix highlighting of ptx registers
+ Fix highlighting of ptx predicated instructions
+ Add the possibility for all languages to specifiy a seperate monaco language definition for the output pane. Defaults to 'asm'.
2019-03-11 17:46:49 +01:00