[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use JS regex syntax in Scheme mode

From: Jakub Jankiewicz
Subject: Use JS regex syntax in Scheme mode
Date: Sat, 8 Aug 2020 20:59:19 +0200


Is it possible to merge any JS mode that have regular expressions and
integrate it with scheme mode? How hard it would be?

I have Lisp written in JavaScript
and I would like to have proper Emacs Mode for my language. The language
is based on scheme (almost 100% compatibile with R5RS and I'm wokring on
R7RS) but have few extensions like literal regular expressions that are almost
the same as one in JavaScript except it can't have space after first / to
prevent matching expressions like

   (/ (* 10 (/ 10 2))

I thikng that I will disable completly spaces in regexes to prevent any

I also have object literals that are create created using syntax extensions
I've created for my language:

    &(:foo 10 :bar 20)

create JS object & is the same as ` or ' in scheme it map to macro call.

I have some experience with Emacs Lisp, but I didn't read much code and I
don't have much experience in creating Emacs modes, even that I have
created one that is on GitHub (for JS & PHP code coverage that I was not able
to merge with coverage.el because original author only care about Ruby).

Could anyone give me some tips how should I go about and create such mode?
Where I should look for regexes in JS mode and how should go about and adding
them to scheme mode?


Jakub Jankiewicz, Web Developer

Attachment: pgpH0VyrwfWTj.pgp
Description: Podpis cyfrowy OpenPGP

reply via email to

[Prev in Thread] Current Thread [Next in Thread]