Code Monkey home page Code Monkey logo

vscode-kdl's People

Contributors

jlkiri avatar zkat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vscode-kdl's Issues

Add icon to extension

We have icons! I just don't know how to get them in as the extension icon. Help with this would be fantastic.

KDL 2.0 compliance

KDL 2.0.0-draft.3 is now generally available (kdl-org/kdl#286), and with it, we've decided to encourage existing implementations to start working towards 2.0 support and send feedback and suggestions for anything you might run into, so I'm making this tracking issue. :)

P.S. We might want to just wait until #12 happens and that grammar is updated for 2.0.

Raw strings break syntax highlighting

  • Extension version: 1.3.1
  • VSCode version: 1.72.0

If a raw string contains a " character, the syntax highlighting incorrectly considers that the end of the string, leading to strange and incorrect syntax highlighting. Example below.

image

License?

Can you please provide a license for this repo?

Provide on OpenVSX

I'm using an open source build of VSCode called code-oss. This and most other OSS versions of VSCode use the OpenVSX plugin marketplace. It would be great if it was available there: https://open-vsx.org

Slashdash comment breaks when string values contain a closing curly brace

image

example text:

/-command "twitter" "tw" {
    rules {
        // profiles (format: @username)
        custom "https://twitter.com/{/username}" \
            regexp="^@(?P<username>[A-Za-z_]+)$"

        noargs "https://twitter.com"
        freeform "https://twitter.com/search?q={ARGS}"
    }

    tests {
        case "tw" "https://twitter.com"
        case "tw @sargunv" "https://twitter.com/sargunv"
        case "tw sargun vohra" "https://twitter.com/search?q=sargun%20vohra"
    }
}

Leading +/- in number not highlighed correctly

"normal 10 leading+ +10 leading- -10 leading+. +10.0 leading-. -10.0" The 10 with no decimal is hilighed in blue, but everything else is green

VSCode recognizes +10 as a entity.name.tag but 10 as constant.numeric.integer.decimal.rust

The same source as before, but with a pop up below the +10, showing entity.name.tag
The same source as before, but with a pop up below the +10, showing constant.numeric.integer.decimal.rust

This ultimately occurs because +10 is both a valid node name, and entry. Ideally +10 should be highlighted differently in the document +10 +10, but I don't thing this is achievable with regex's. But I think if +10 can only be a number or identifier, it's more likely to be a number.

Equals sign (=) in string breaks highlighting

Example text

command "twitter" "tw" url="https://twitter.com/" {
    match regexp="^@(?<username>[A-Za-z_]+)$" url="https://twitter.com/{username}" encoding="path"
    default url="https://twitter.com/search?q={}" encoding="query"
}

image

If I remove the = from the string, it looks fine:

image

Spaced string on slash dot comment

If I under the spec correctly, I believe the whole thing of /-"comment ull" should be commented out instead of just until the space (since slashdot should be for the whole node / value).

Source

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.