dylan-lang / vscode-dylan Goto Github PK
View Code? Open in Web Editor NEWDylan support for Visual Studio Code
License: MIT License
Dylan support for Visual Studio Code
License: MIT License
The current textmate grammar has clauses to parse the 'header' part of a source file (the collection of Key: Value lines) but it is too keen and also picks up lines in the code that have a colon in them. Example:
The ':' in the string makes the grammar think it's parsing a header line, which also swallows the closing double quote and makes the string extend over the last few lines (orange color)
This is made tricky because AFAICS textmate grammars don't allow you to split a file into different regions with different rules.
I noticed if the code contains a colon (e.g. a keyword), the highlighting stops working afterwards. This persists, I think, until the next line that doesn't start with white-space. In the example below, highlighting stops after size:
and starts again at end method
.
This may be due to the rules for the header part of the file (Module: ....
etc.) matching other parts. When I use "Developer: Inspect TM scopes" in VSCode it says those parts are 'meta.header.mail'
By inspection of the regular expressions I see that we don't match may-inline
, default-inline
, or not-inline
.
When using npm i
to install dependencies it warns of a critical vulnerability in Mocha (the test framework). We're using an old version 2.5.3, current is 5.2.0. It doesn't matter a great deal as the extension doesn't seem to have much in the way of tests.
$ npm audit
=== npm audit security report ===
# Run npm install --save-dev [email protected] to resolve 3 vulnerabilities
SEMVER WARNING: Recommended action is a potentially breaking change
Low Regular Expression Denial of Service
Package debug
Dependency of mocha [dev]
Path mocha > debug
More info https://nodesecurity.io/advisories/534
High Regular Expression Denial of Service
Package minimatch
Dependency of mocha [dev]
Path mocha > glob > minimatch
More info https://nodesecurity.io/advisories/118
Critical Command Injection
Package growl
Dependency of mocha [dev]
Path mocha > growl
More info https://nodesecurity.io/advisories/146
found 3 vulnerabilities (1 low, 1 high, 1 critical) in 902 scanned packages
3 vulnerabilities require semver-major dependency updates.
Can be fixed with the suggested command line npm install --save-dev [email protected]
I can confirm this major version change doesn't break the current test setup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.