Skip to content

Instantly share code, notes, and snippets.

@shawnma
Created July 8, 2016 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawnma/8fa66eb2da1add9011d7ad937367c2d5 to your computer and use it in GitHub Desktop.
Save shawnma/8fa66eb2da1add9011d7ad937367c2d5 to your computer and use it in GitHub Desktop.
%YAML 1.2
---
name: pbascii
file_extensions: [pbascii]
scope: source.pbascii
contexts:
main:
- match: '"'
push: string
- match: <
push: brackets
- include: comments
- include: highlights
- match: >
scope: invalid.illegal.stray-bracket-end
brackets:
- match: >
pop: true
- include: main
string:
- meta_scope: string.quoted.double.pbascii
- match: \\[0-9]+
scope: constant.character.escape.pbascii
- match: \\.
scope: constant.character.escape.pbascii
- match: '"'
pop: true
comments:
- match: "#"
scope: punctuation.definition.comment.pbascii
push:
- meta_scope: comment.line.number-sign.pbascii
- match: \n
pop: true
highlights:
- match: "--"
scope: keyword.pbascii
push:
- meta_scope: keyword.pbascii
- match: \n
pop: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment