view dep/animia/util/Anisthesia.sublime-syntax @ 137:69db40272acd

dep/animia: [WIP] huge refactor this WILL NOT compile, because lots of code has been changed and every API in the original codebase has been removed. note that this api setup is not exactly permanent...
author Paper <mrpapersonic@gmail.com>
date Fri, 10 Nov 2023 13:52:47 -0500
parents
children
line wrap: on
line source

%YAML 1.2
---
name: Anisthesia
file_extensions: [anisthesia]
scope: text.anisthesia

contexts:
  main:
    - include: comments
    - include: keywords
    - include: player
    - include: strategies
    - include: type
    - include: string

  comments:
    - match: ^\t*#.*\n
      scope: comment.anisthesia

  keywords:
    - match: ^\t+(executables|strategies|type|windows):?\n
      scope: keyword.anisthesia

  player:
    - match: ^[^\s].+\n
      scope: markup.heading.player.anisthesia

  strategies:
    - match: ^\t+(open_files|ui_automation|window_title):?\n
      scope: constant.strategy.anisthesia

  type:
    - match: ^\t+(default|web_browser)\n
      scope: constant.type.anisthesia

  string:
    - match: ^\t+\^?(.+)\n
      scope: string.anisthesia