Giter Site home page Giter Site logo

pomsky-lang / pomsky-vscode Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 349 KB

Official Pomsky support for VS Code

Home Page: https://marketplace.visualstudio.com/items?itemName=pomsky-lang.pomsky-vscode

License: Apache License 2.0

JavaScript 4.16% CSS 1.87% TypeScript 93.97%
pomsky vscode vscode-extension

pomsky-vscode's Introduction

Logo

pomsky-vscode

The official extension for the Pomsky regular expression language. It is still in development and lacks some features.

Features

  • Syntax highlighting
  • Underlined errors and warnings
  • Auto-completion of variables and character classes
  • Running tests (enable with the pomsky.runTests) configuration
  • Live preview of compiled expression
    • Right-click and select Open compiled RegExp on the right or click the icon in the top right corner
  • Hover tooltips for keywords and built-ins
  • Embedded syntax highlighting in Markdown code blocks

Missing IDE features:

  • Go to definition / find usages / rename variable
  • Code formatting
  • Extend selection
  • Quick fixes
  • Compiled Regex: find and replace

Requirements

You need to have the pomsky executable installed locally. Get it from the Releases page. Then you need to either

  • go to the settings, search for pomsky.exePath and enter the path to the executable, or

  • rename the executable to pomsky and move it to /usr/bin or ~/.cargo/bin so it can be detected automatically

In the future we'll add a setting to specify a path to the executable. We might also embed an executable compiled to WASM, so no setup is needed.

Extension Settings

The following configurations are available:

  • pomsky.defaultFlavor: Specifies the default regex flavor

  • pomsky.runTests: Enable to conveniently run tests and see test failures on every change

  • pomsky.executable.path: Points to the Pomsky executable

  • pomsky.executable.extraArgs: Additional arguments to pass to pomsky. For example, setting it to -Wcompat=0 disables compatibility warnings.

Issues

This extension is an alpha stage, so expect some bugs. Please report any problems you encounter here!

pomsky-vscode's People

Contributors

aloso avatar

Stargazers

astrolemonade avatar

Watchers

 avatar

pomsky-vscode's Issues

Diagnostics aren't removed when the file is deleted

Steps to reproduce:

  • create a .pom file with an error
  • commit the file
  • switch to a branch where the file doesn't exist

Problem: The folder that previously contained the file is still highlighted in red, and the "errors" panel still contains the error from the deleted file

Pass content via stdin

There are platform dependent limits on how much text you can pass to a program via CLI arguments. Longer text should therefore be passed via stdin.

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.