Sha256: d06fc3fc1756f1f66164b67cdcff57c30bfabe0f9bced77a2a64d08590541e83

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

# Encoding: UTF-8

{fileTypes: ["cfg"],
 keyEquivalent: "^~Q",
 name: "Quake Style .cfg",
 patterns: 
  [{comment: 
     "the 2nd part of the regex is just to capture binds to number-keys and prevent them from getting highlighted as values.",
    match: 
     /\b(?<_1>set(?<_2>a|u|s)?|bind|undbind|unbindall|vstr|exec|kill|say|say_team|quit|echo)(?<_3>\s+\d)?\b/,
    name: "keyword.other.quake3"},
   {match: /\b\d+(?<_1>\.\d+)?\b/, name: "constant.numeric.quake3"},
   {begin: /"/,
    beginCaptures: {0 => {name: "punctuation.definition.string.begin.quake3"}},
    end: "\"",
    endCaptures: {0 => {name: "punctuation.definition.string.end.quake3"}},
    name: "string.quoted.double.quake3",
    patterns: 
     [{match: /\\./, name: "constant.character.escape.quake3"},
      {match: 
        /\b(?<_1>set(?<_2>a|u|s)?|bind|unbindall|vstr|exec|kill|say|say_team|quit|echo)\b/,
       name: "keyword.other.string-embedded.quake3"}]},
   {captures: {1 => {name: "punctuation.definition.comment.quake3"}},
    match: /(?<_1>\/\/).*$\n?/,
    name: "comment.line.double-slash.quake3"}],
 scopeName: "source.quake-config",
 uuid: "AAB8717E-6E5C-11D9-9BE0-0011242E4184"}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ver-2010.08 config/syntax/Quake Style .cfg.rb