Closed jryans closed 2 years ago
I'm happy to attempt a fix here, though https://github.com/Eugleo/magic-racket/pull/53 is in the same area (syntax) and has been open for a while...
Hey, I'm actually happy to merge syntax-related PRs; until I or @dannypsnl come up with an automated way to generate the .json
syntax files, just make the changes both in the .yaml
and in the tmLanguge.json
. It is actually possible to just convert the yaml file to json with an online converted, although it is a bit dirty, it works.
Would you like to mention which online converter? I just find the YAML might be invalid:
import yaml
with open('src/racket.yaml') as f:
data = yaml.load(f, Loader=yaml.FullLoader)
print(data)
# yaml.scanner.ScannerError: while scanning a double-quoted scalar
# in "src/racket.yaml", line 1053, column 16
# found unknown escape character '['
# in "src/racket.yaml", line 1053, column 27
#lang racket
(require yaml)
(read-yaml (open-input-file "src/racket.yaml"))
; racket.yaml:1052:26: while scanning a double-quoted scalar;
; found unknown escape character [
Environment
Expected
The inline comments should use comment colouring, while the struct fields should have another colour, similar to how they are in DrRacket:
Actual
The struct fields and comments are the same colour:
Example file