Coder Social home page Coder Social logo

vurv78 / expression-ls Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 371 KB

Expression2/ExpressionScript for VSCode

Home Page: https://marketplace.visualstudio.com/items?itemName=Vurv78.e2-ls

License: MIT License

JavaScript 9.35% TypeScript 90.04% Shell 0.61%
e2 expression2 garrysmod gmod language-server vscode vscode-extension wiremod

expression-ls's Introduction

expression-ls's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

avisix

expression-ls's Issues

Extension tells me not to use changed() on a wirelink

Several of my e2's have this problem where the Extension says 'Don't use changed(). Either use ~ or call this code from where you changed the variable'
However, on every single one of these E2's the changed() is on a wirelink, and trying to use ~ on a wirelink just gives the error
No such operator: get number[string, number]

format() will leaves quote and parenthesis open

extension version: 1.2.0

code to reproduce:

Str = "some words"
Str:match("%w")

## I don't know this is intentional or not but pattern classes in format will be highlighted
format("number: %i", 1) ## here's a format function behaves normal
## keyword behaves normal
for(I = 1, 2) {
}

format("no arg: abc") ## without the comma things will be highlighted as the color of types and leave a opening parenthesis
## keyword won't match correctly
try {}
catch(Err) {}

) ## everything return normal after closing that parenthesis in vscode but will leaves one open in game

do {
}while()

format("something, some text: %s", "test text") ## format with a comma in the pattern will causing quote and parenthesis unclosed

## some syntax
do {
}while()

#") ## everything return normal if I close the quote and parenthesis

function test() {
    print("test")
}

Screenshot in vscode:

image

Screenshot in game:

image

comments can't be highlighted correctly inside of a table

using the extensions version: 1.1.0

Expected behavior: comments appears as gray

Actual behavior: comments inside of a table will appear as unrecognized

code to reproduce the bug:

PST = table(
    "session" = table(
        "sessionname" = "autoload"
        "history" = table(),
        "queue" = table(),
        "playlists" = table(),
        "settings" = table(
            "queueindex" = 1, ## 1~n
            "historyindex" = 0, ## 0~-n
            ## listOnce, listLoop, singleLoop, randomLoop
            "playmode" = "list",
            "volume" = 1,
            "range" = 1000,
            "isplaying" = 0
        )
    )
)

screenshot:
image

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.