Skip to content

Instantly share code, notes, and snippets.

@romgerman
Created November 13, 2017 11:34
Show Gist options
  • Save romgerman/1b6a6a01f17ba16378aa6eabff0fdfdb to your computer and use it in GitHub Desktop.
Save romgerman/1b6a6a01f17ba16378aa6eabff0fdfdb to your computer and use it in GitHub Desktop.
Simple KeyValues highlighting for Sublime Text 3. Save to "Packages\User" folder, then open and press F7 to compile
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: Valve Key Values
scopeName: text
fileTypes: []
uuid: c8ad0af6-a42c-4008-8737-36156bb81f61
patterns:
- name: comment
match: '\/\/.*'
- name: string
match: '\"(?:\\.|[^"\\])*\"'
- name: constant.numeric
match: '\b\d+'
- name: keyword.operator
match: '\[.+\]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment