Giter VIP home page Giter VIP logo

ada-vscode's Introduction

This extension is still in development. Things may not work correctly. Things may break. The world may end.

About

Join the chat at https://gitter.im/Ada-vscode/Lobby Visual Studio Marketplace Installs Visual Studio Marketplace Downloads

This extension was developed largely in response to the horrible quality of Ada syntax highlighters, whether for VS Code or otherwise. It's all too apparent they were created by people who barely, if at all, work with the language.

As I've developed this, I feel like the TextMate grammar approach is very insufficient. A language server for VS Code would need to be implemented to better highlight the source code, especially for cases where RegEx will always fall short, like types within generic initializers, or function names versus type constraints. I'll still update this grammar in the meantime, until a language server can be developed.

Features

  • Highlighting for pragmas and aspects.
  • Highlighting for types, something often missed, and as I understand it only also seen in GPS.
  • Context aware highlighting, such as return being classed differently in function declarations versus control statements, or exception being classed as a keyword when introducing exception handler blocks, but as a type when declaring exceptions.
  • Highlighting for .adc and .gpr files, not just .adb and .ads.

Help Me Out

Good quality extensions take a lot of time. Considerably more than just "meh, close enough" level work. If you'd like to help out but don't know how to contribute to the code, consider donating to this projects Beerpay.

If you're one for actually contributing, a repo is located on GitHub. Clone the repo, make your changes, and create a pull request. Assuming they meet quality standards and conventions, it will be integrated.

Sometimes I just don't see an issue with the syntax highlighter, so if you notice something not being highlighted or being highlighted wrong, please file an issue report, and include a screenshot.

Works Best With

  • Offbase although any theme will work well.

Proofs in the Screenshot

screenshot

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.