Skip to content

Instantly share code, notes, and snippets.

@ladyisak
Created February 4, 2018 10:31
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 ladyisak/8910aaed99ba67c6689c0928b3e568ab to your computer and use it in GitHub Desktop.
Save ladyisak/8910aaed99ba67c6689c0928b3e568ab to your computer and use it in GitHub Desktop.
%YAML 1.2
---
name: Ink
file_extensions:
- ink
- ink2
scope: source.ink
contexts:
main:
- include: mixed_content
mixed_content:
- include: inline_conditional
inline_conditional:
- match: '(\{)([^.*:\|\}]+:)'
captures:
1: keyword.operator.bracket
2: keyword.label.condition
push:
- meta_scope: meta.logic.inline
- match: '(\})'
captures:
1: keyword.operator.bracket
pop: true
- match: \|
scope: keyword.operator.separator
binary_logic:
- match: '\&&|\|\||\?|\!\?'
scope: keyword.operator.logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment