Skip to content

This repository contains a TextMate grammar for the Mojo 🔥 programming language.

License

Notifications You must be signed in to change notification settings

modular/mojo-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mojo-syntax

This repository contains a TextMate grammar for the Mojo 🔥 programming language.

Testing

Grammar tests use vscode-tmgrammar-test. Test files live in tests/ and use inline scope assertions.

npm install
npm test

To run a single test file:

npx vscode-tmgrammar-test -g syntaxes/mojo.syntax.json 'tests/baseline.mojo'

Contributing

The Mojo syntax has been converted from VS Code's Python syntax, which itself was converted from MagicPython.tmLanguage. Many fixes or improvements to Mojo's syntax also apply to these two projects, so in many cases, creating a pull request against one of these two repositories is the way to go. Once accepted there, we can pull down the changes into this project.

For Mojo-specific updates, we'd be happy to review pull requests sent here. Please include a description of the problem that the change addresses.

Reports of general issues with Mojo or how its syntax is highlighted on GitHub, or requests to update this grammar based on changes to the VS Code or MagicPython syntax files, can be sent as issues on the main Mojo repository here.

About

This repository contains a TextMate grammar for the Mojo 🔥 programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages