ahkscript / SublimeAutoHotkey

AutoHotkey AHK language package for SublimeText including syntax highlighting, comments toggling, auto-completions, build system definitions, commands for ahkrun, ahkcompile, ahkrunpiped.
The Unlicense
207 stars 43 forks source link

Upgrade to the better user(!)-extensible sublime-syntax format #72

Open eugenesvk opened 2 years ago

eugenesvk commented 2 years ago
%YAML 1.2
---
name             : AutoHotkey2                    # extends the AutoHotkey package with v2-specific contexts
file_extensions  : [ahk]
first_line_match : '^#Requires AutoHotKey v2[\d\.\-a-z]*'
scope            : source.ahk
version          : 2
extends          : Packages/AutoHotkey/AutoHotkey.sublime-syntax

contexts:
  main             :
    - meta_append  : true
    - include      : string-quoted-single

  string-quoted-single:
    - match: (')
      captures:
        1: punctuation.definition.string.ahk
      push:
        - meta_scope: string.quoted.single.ahk
        - match: (')(?!')|^
          captures:
            1: punctuation.definition.string.ahk
          pop: true