qsharp-community / qsharp-tmLanguage

Q# syntax grammar for code highlighting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Q# language - syntax grammar for code highlighting

This repository contains the TextMate grammar for Q#. The grammar provides tokenization support for Q# language files, and can be used for syntax highlighting of Q# code in any editor.

CoC

Build and Development

To contribute, clone the repo and run (requires Node.js and npm to be installed on the dev machine)

  • npm install to install all dependencies
  • Run npm run compile to build and run tests
  • Run npm run test to run only tests

The source grammar is located at src/qsharp.tmLanguage.yml and is the core file to be maintained.

Output

The output are the grammar files located at:

  • grammars/qsharp.tmLanguage
  • grammars/qsharp.tmLanguage.json

These two files are committed to source control to allow easy access to latest grammars, but they should not be edited by hand.

The latest ones can be grabbed manually from here and used directly in any editor supporting TextMate grammar.

License

MIT License

About

Q# syntax grammar for code highlighting

License:MIT License


Languages

Language:TypeScript 97.3%Language:JavaScript 2.7%