Dylan Language Support on VSCode

65 views
Skip to first unread message

Gareth Baker - UKRI STFC

unread,
Sep 14, 2018, 5:26:10 AM9/14/18
to dylan...@googlegroups.com

I’ve been editing Dylan files in VSCode and I tried the Extension that is available.

 

Out of the box it does not work but after a bit of trial and error and some searching, it turns out that it seems to be quite easy to fix.

 

Locally, I converted the two tmLanguage files in the syntaxes folder to json format (using a convert facility in the TextMate Language extension), updated the package file and bingo – it works.

 

How easy is it to get the master changed?

 

Gareth

 

Research & Development Commended 2017

Sci-Tech Daresbury, Keckwick Lane, Daresbury, Warrington, WA4 4AD

( 01925 603285È07867 501115 8 gareth...@stfc.ac.uk

 

P Please consider the environment before printing this e-mail

 

 

STFC is part of UK Research and Innovation, a non-departmental public body funded by a grant-in-aid from the UK Government. More information can be found at https://www.ukri.org/

 

 

Bruce Mitchener

unread,
Sep 14, 2018, 7:09:25 AM9/14/18
to Gareth Baker - UKRI STFC, dylan...@googlegroups.com
Submit a pull request and I can republish.

 - Bruce

Sent from my iPhone

On Sep 14, 2018, at 4:26 PM, Gareth Baker - UKRI STFC <gareth...@stfc.ac.uk> wrote:

I’ve been editing Dylan files in VSCode and I tried the Extension that is available.

 

Out of the box it does not work but after a bit of trial and error and some searching, it turns out that it seems to be quite easy to fix.

 

Locally, I converted the two tmLanguage files in the syntaxes folder to json format (using a convert facility in the TextMate Language extension), updated the package file and bingo – it works.

 

How easy is it to get the master changed?

 

Gareth

 

<image001.jpg>

Sci-Tech Daresbury, Keckwick Lane, Daresbury, Warrington, WA4 4AD

( 01925 603285È07867 501115 8 gareth...@stfc.ac.uk

 

P Please consider the environment before printing this e-mail

 

 

STFC is part of UK Research and Innovation, a non-departmental public body funded by a grant-in-aid from the UK Government. More information can be found at https://www.ukri.org/

 

 

--
You received this message because you are subscribed to the Google Groups "dylan-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dylan-lang+...@googlegroups.com.
To post to this group, send email to dylan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dylan-lang/b8c27d26c5a74d9092b264262779693f%40stfc.ac.uk.
For more options, visit https://groups.google.com/d/optout.

Peter Hull

unread,
Sep 14, 2018, 7:39:08 AM9/14/18
to Bruce Mitchener, Gareth Baker - UKRI STFC, dylan...@googlegroups.com
Was the code from this repo:
used to generate the .tmLanguage file in the VScode extension (https://github.com/dylan-lang/vscode-dylan)?

I use and like vscode; it would be great in the future if Dylan had an implementation of the language server protocol, but that is a big project for sure.

Pete


gareth...@stfc.ac.uk

unread,
Sep 14, 2018, 7:47:56 AM9/14/18
to dylan-lang
I cloned the vscode-dylan extension git repository - It's that code that I started with, not the dylan-syntax-support one.

Gareth

gareth...@ntlworld.com

unread,
Sep 15, 2018, 7:47:06 AM9/15/18
to dylan-lang
Hope fully you should have 3 pull requests - more hopefully, I've done it correctly :-)

Gareth

Bruce Mitchener

unread,
Sep 15, 2018, 12:12:49 PM9/15/18
to gareth...@ntlworld.com, dylan...@googlegroups.com
I've figured out how to publish again ... and I've published a 0.2.0 version with your changes.

 - Bruce


peter...@gmail.com

unread,
Sep 17, 2018, 5:49:17 AM9/17/18
to dylan-lang
On Saturday, 15 September 2018 17:12:49 UTC+1, Bruce Mitchener wrote:
I've figured out how to publish again ... and I've published a 0.2.0 version with your changes.

Looks good! I filed an issue (sorry) https://github.com/dylan-lang/vscode-dylan/issues/4

Pete

gareth...@stfc.ac.uk

unread,
Nov 28, 2018, 10:16:55 AM11/28/18
to dylan-lang
Finally got round to having a look at this.In the area of the file Pete suggested looking in the filed issue.

I think the end: regex string is incorrect matching BeginOfLine and either \t or \v

I changed it locally to "^|\\s*|$" to match BeginOfLine or spaces or EndOfLine. This seems to fix Pete's example.

I'll do a bit more testing and then issue a Pull request.

I did notice a bit further down and end: clause "(?!\\G)" - not sure where you would want to capture "MatchOnlyIfNotFollowedBy G"

Gareth
Reply all
Reply to author
Forward
0 new messages