Created
May 8, 2016 15:19
-
-
Save eric-wieser/1cd2919483d18d6b3788a54dec4f165c to your computer and use it in GitHub Desktop.
Basic syntax highlighting for message files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how do I use it?