Rubén Rincón Blanco
845b633441
Add single quote for strings in asm mode ( #3157 )
...
* Add single quote for strings in asm mode
* Remove unreleated changes
* Change singlequote token
2021-12-12 17:42:52 +01:00
Patrick Quist
cdf295665b
More Erlang keywords ( #3130 )
2021-11-22 00:06:24 +01:00
Patrick Quist
2bc71691ef
Erlang highlight and add to amazon ( #3129 )
2021-11-21 23:53:43 +01:00
Mats Larsen
729433e214
Temporarily fix security vulnerability in crystal-mode regex
2021-10-14 11:07:17 +02:00
Mats Larsen
9904a6ee51
Make each mode a ts module
2021-10-12 16:11:56 +02:00
Mats Larsen
2f83604654
Rename all mode files to .ts in preparation for #3027
2021-10-12 15:45:18 +02:00
Matt Godbolt
184e58e569
Some tweaks to regexes. Not that I could get the crystal one to work
2021-09-27 22:39:34 -05:00
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 Miller and Patrick 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 Blanco and Austin 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
pbrubaker and Pete 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 Morton and Rubé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