Code Monkey home page Code Monkey logo

vscode-dylan's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-dylan's Issues

Wrong formatting for lines with colons

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:
Example with wrong formatting
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.

Syntax highlighting stops after colon.

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'

Using VSCode 1.27.2 vscode-dylan 0.2.0
example

npm audit 'critical vulnerability'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.