Giter Site home page Giter Site logo

damirka / move-syntax Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 6.0 2.09 MB

Move language syntax for VSCode and GitHub

Home Page: https://marketplace.visualstudio.com/items?itemName=damirka.move-syntax

License: MIT License

JavaScript 100.00%
vscode vscode-extension move diem aptos move-language movelang sui syntax-highlighting

move-syntax's Introduction

Move Language Syntax package

This VSCode extension adds Move syntax support to VSCode (see VSCode marketplace page). As well as defines the TextMate grammar for Move Language to use in other environments.

To learn more about the language, see these resources:

Highlighting examples

With a dark theme: Move syntax highlighting

With a light theme: Move syntax highlighting

Note for Extension Developers

If you're building your own extension for Move, please consider using this one for syntax highlighting. To do so, simply add this extension to the list of dependencies of your extension's package.json file, and it should do the job. Example:

"extensionDependencies": [
	"damirka.move-syntax"
],

These extensions are already using this syntax highlighting:

Contribution

Feel free to ask any questions or report bugs by opening new issue.

License

Originally licensed under Apache license (see COPYING). Sublicensed as MIT.

move-syntax's People

Contributors

alhadis avatar damirka avatar macalinao avatar mkurnikov avatar oxade 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

move-syntax's Issues

Invalid regular expressions in grammar

๐Ÿ‘‹ from github-linguist/linguist which uses this grammar for syntax highlighting Move files on GitHub.com.

I'm in the process of creating the next release and I've seen our grammar compiler has detected the grammar has two invalid regular expressions which may impact the highlighting of some Move files:

  • repository vendor/grammars/vscode-move-syntax (from https://github.com/damirka/vscode-move-syntax.git) (2 errors)
    • Invalid regex in grammar: source.move (in syntaxes/move.tmLanguage.json) contains a malformed regex (regex "(?<=(module|spec))": lookbehind assertion is not fixed length (at offset 17))
    • Invalid regex in grammar: source.move (in syntaxes/move.tmLanguage.json) contains a malformed regex (regex "(?<=(module|spec))": lookbehind assertion is not fixed length (at offset 17))

I won't hold back the release for this to be fixed, but I will be adding this to the list of known grammar issues: github-linguist/linguist#3924. Any fixes you make to this grammar will be pulled in when the next release is made.

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.