Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic syntax highlighting for message files
%YAML 1.2
---
name: ROS message definition
file_extensions: [msg]
scope: source.rosmsg
contexts:
main:
- match: \#.*$
scope: comment.line.rosmsg
- match: ^\s*(bool|int8|uint8|int16|uint16|int32|uint32|int64|uint64|float32|float64|string|time|duration)\b
scope: storage.type.rosmsg
- match: \b([A-Z_]+)\s*=\s*(\d+)
captures:
2: constant.numeric.integer.rosmsg
@gavanderhoorn

This comment has been minimized.

Copy link

commented May 10, 2016

Have you considered submitting this to package control?

@eric-wieser

This comment has been minimized.

Copy link
Owner Author

commented May 29, 2017

@gavanderhoorn: It's been a while since I've submitted a package. Next time I'm using ros, I'll try and improve this a little, and then submit it

@adrianohrl

This comment has been minimized.

Copy link

commented Feb 2, 2018

how do I use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.