Sha256: fb59fde88a21047405d0715369dc9f989ea900dd16de9a2bbb18efad6fffdb9e

Contents?: true

Size: 1.95 KB

Versions: 2

Compression:

Stored size: 1.95 KB

Contents

{
  "name": "xojo",
  "scopeName": "source.xojo",
  "patterns": [
    {
      "include": "#comment"
    },
    {
      "include": "#comment-rem"
    },
    {
      "include": "#tags"
    },
    {
      "include": "#string-literal"
    },
    {
      "include": "#keywords"
    },
    {
      "include": "#directives"
    },
    {
      "include": "#keywords-numeric"
    },
    {
      "include": "#keywords-functions"
    },
    {
      "include": "#numbers"
    },
    {
      "include": "#numbers-literal"
    },
    {
      "include": "#numbers-binary"
    }
  ],
  "repository": {
    "comment": {
      "name": "punctuation.definition.comment.xojo",
      "match": "(//|').*$"
    },
    "comment-rem": {
      "name": "punctuation.definition.comment.xojo",
      "match": "(?i)(rem .++)$"
    },
    "directives": {
      "name": "keyword.xojo",
      "match": "(?i)#(if|else|elseif|endif|pragma)\\b"
    },
    "keywords": {
      "name": "keyword.xojo",
      "match": "\\b(?i)(me|self|super|return|dim|const|static|as|if|then|else|for|next|do|loop|until|while|wend|end if|select case|case|end select|private|public|protected|try|catch|finally|nil)\\b"
    },
    "keywords-functions": {
      "name": "keyword.xojo",
      "match": "\\b(?i)(sub|function|class|end|return)\\s\\w++\\b"
    },
    "keywords-numeric": {
      "name": "keyword.xojo",
      "match": "\\b(?i)(boolean|integer|double|cgfloat|long|string|color|true|false|(u)*int(8|16|32|64))\\b"
    },
    "numbers": {
      "name": "constant.numeric.xojo",
      "match": "\\b(-)?[0-9.]+\\b"
    },
    "numbers-binary": {
      "name": "constant.numeric.integer",
      "match": "(?i)\u0026b[01]+"
    },
    "numbers-literal": {
      "name": "constant.numeric.integer",
      "match": "(?i)(\u0026h|\u0026c)[0-9a-f]+"
    },
    "string-literal": {
      "name": "string.quoted.double.xojo",
      "match": "(\\\".*?\\\")"
    },
    "tags": {
      "name": "markup.bold.xojo",
      "match": "^\\s*#tag.*$"
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github-linguist-7.5.1 grammars/source.xojo.json
github-linguist-7.5.0 grammars/source.xojo.json