Code Monkey home page Code Monkey logo

language-rgbasm's Introduction

RGBASM language support in Atom

Adds syntax highlighting to RGBASM assembly files in Atom.

RGBASM

RGBASM is the assembler dialect used for programming Game Boy games with the Rednex Game Boy Development System (RGBDS).

This is sometimes erroneously referred to as "Z80 assembler"; although the Game Boy's CPU is similar to Z80 and 8080, it's distinct, and using Z80 syntax highlighting isn't ideal, especially when using RGBASM features.

Language reference

To do

See issues for known bugs and planned features.

Please open an issue to report something. Pull requests are more than welcome.

Related grammars

This grammar was inspired by other related grammars, but focuses on coverage of RGBASM, including features from newer versions of RGBDS.

language-rgbasm's People

Contributors

adlpr avatar tobiasvl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

adlpr

language-rgbasm's Issues

Use more correct scopes

Some of the scopes we're using now don't fit the current guidelines.

One example is labels. The entire label is entity.name.label, which is good, but the label itself is entity.name.function.label, which is wrong (but which I admit I scoped wrong on purpose, to get a more varied syntax highlighting).

But we should probably be consistent with existing conventions:

Parse labels correctly

There are a lot of false positives while parsing labels.

  • scope1.scope2.label should not be legal label (labels can only have a global and a local scope) (partly fixed in f111876 but the parsing could still be a lot better)
  • .local_label:: should not be legal (only global labels may be exported)
  • Probably more

Snippets

It would be nice to have some snippets – Game Boy games require a lot of boilerplate, after all – but I'm not sure what they should be.

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.