Commit Graph
12 Commits
Author SHA1 Message Date
Ofek 1aef3f3863 Fix default imports/exports to be ES6 conformant (#7383)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2025-02-09 22:33:36 +02:00
Matt Godbolt 9541e1e8d8 Mitigations for CL labels (#7320)
Some syntax highlighting improvement for CL asm lines like:

```as
int * moo DD  01H                       ; moo
```

and

```as
?mooz@@3PAFA DW 01H                                 ; mooz
```

where previously the DD (or DW DQ) wasn't syntax highlighted, making it
harder to spot the case where CL puts the first defined value of an
array on the same line as the label definition.

This isn't perfect, and might be fairly expensive, but helps mitigate
issue #1645, hopefully well enough to close it.

Tested locally with gcc and clang output, and then pasted into
Monarch/Monaco and tested with some CL output.
2025-01-29 10:33:22 -06:00
Siyao (Jane) He 514c3c763f Assembly syntax highlight of comments after code (#5046)
Solving the issue #4876 @jeremy-rifkin 
![Screenshot 2023-05-11 at 9 44 19
AM](https://github.com/compiler-explorer/compiler-explorer/assets/113857408/742c610b-632e-4e8a-a533-082abbbd6e51)
2023-05-14 14:55:37 -04:00
Jeremy Rifkin 59f8c45246 Update static/modes typing (#4582) 2023-01-13 19:54:26 -05:00
Matt Godbolt 90e6e4ecfd Support backticks in labels (#4352)
.NET uses them, it seems. Closes #4350
2022-11-27 10:39:57 -06:00
Mats Larsen 4f9a34c511 Also enable prettier for recursive directories in static (#3539)
* Also enable prettier for recursive directories in static

* Fix formatting

* Fixes
2022-04-24 19:11:48 +02:00
Jeremy Rifkin ad7d810b74 Support MSVC's backtick strings (#3423)
* Support msvc's backtick strings

* Support for strings at the start of a line
2022-03-07 11:15:49 +01:00
Jeremy Rifkin 25efbd7ce6 Fix string highlighting for msvc output (#3403) (#3405) 2022-02-26 13:38:57 -06:00
Rubén Rincón Blanco 42c7b2b694 Make eslint work on static ts files (#3304) 2022-02-03 18:04:50 +01:00
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
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