pub const HIGHLIGHTS_QUERY: &'static str = "; Punctuation\n;------------\n\n[\n  \",\" \".\" \";\" \":\" \"=\" \"|\" \"~\" \"?\" \"+\" \"-\" \"!\" \">\" \"&\"\n  \"->\" \";;\" \":>\" \"+=\" \":=\" \"..\"\n] @punctuation.delimiter\n\n[\"(\" \")\" \"[\" \"]\" \"{\" \"}\" \"[|\" \"|]\" \"[<\" \"[>\"] @punctuation.bracket\n\n(object_type [\"<\" \">\"] @punctuation.bracket)\n\n\"%\" @punctuation.special\n\n(attribute [\"[@\" \"]\"] @punctuation.special)\n(item_attribute [\"[@@\" \"]\"] @punctuation.special)\n(floating_attribute [\"[@@@\" \"]\"] @punctuation.special)\n(extension [\"[%\" \"]\"] @punctuation.special)\n(item_extension [\"[%%\" \"]\"] @punctuation.special)\n(quoted_extension [\"{%\" \"}\"] @punctuation.special)\n(quoted_item_extension [\"{%%\" \"}\"] @punctuation.special)\n\n; Keywords\n;---------\n\n[\n  \"and\" \"as\" \"assert\" \"begin\" \"class\" \"constraint\" \"do\" \"done\" \"downto\" \"else\"\n  \"end\" \"exception\" \"external\" \"for\" \"fun\" \"function\" \"functor\" \"if\" \"in\"\n  \"include\" \"inherit\" \"initializer\" \"lazy\" \"let\" \"match\" \"method\" \"module\"\n  \"mutable\" \"new\" \"nonrec\" \"object\" \"of\" \"open\" \"private\" \"rec\" \"sig\" \"struct\"\n  \"then\" \"to\" \"try\" \"type\" \"val\" \"virtual\" \"when\" \"while\" \"with\"\n] @keyword\n\n; Operators\n;----------\n\n[\n  (prefix_operator)\n  (sign_operator)\n  (pow_operator)\n  (mult_operator)\n  (add_operator)\n  (concat_operator)\n  (rel_operator)\n  (and_operator)\n  (or_operator)\n  (assign_operator)\n  (hash_operator)\n  (indexing_operator)\n  (let_operator)\n  (let_and_operator)\n  (match_operator)\n] @operator\n\n(match_expression (match_operator) @keyword)\n\n(value_definition [(let_operator) (let_and_operator)] @keyword)\n\n[\"*\" \"#\" \"::\" \"<-\"] @operator\n\n; Constants\n;----------\n\n(boolean) @constant\n\n[(number) (signed_number)] @number\n\n[(string) (character)] @string\n\n(quoted_string \"{\" @string \"}\" @string) @string\n\n(escape_sequence) @escape\n\n(conversion_specification) @string.special\n\n; Variables\n;----------\n\n[(value_name) (type_variable)] @variable\n\n(value_pattern) @variable.parameter\n\n; Properties\n;-----------\n\n[(label_name) (field_name) (instance_variable_name)] @property\n\n; Functions\n;----------\n\n(let_binding\n  pattern: (value_name) @function\n  (parameter))\n\n(let_binding\n  pattern: (value_name) @function\n  body: [(fun_expression) (function_expression)])\n\n(value_specification (value_name) @function)\n\n(external (value_name) @function)\n\n(method_name) @function.method\n\n(application_expression\n  function: (value_path (value_name) @function))\n\n(infix_expression\n  left: (value_path (value_name) @function)\n  operator: (concat_operator) @operator\n  (#eq? @operator \"@@\"))\n\n(infix_expression\n  operator: (rel_operator) @operator\n  right: (value_path (value_name) @function)\n  (#eq? @operator \"|>\"))\n\n(\n  (value_name) @function.builtin\n  (#match? @function.builtin \"^(raise(_notrace)?|failwith|invalid_arg)$\")\n)\n\n; Types\n;------\n\n[(class_name) (class_type_name) (type_constructor)] @type\n\n(\n  (type_constructor) @type.builtin\n  (#match? @type.builtin \"^(int|char|bytes|string|float|bool|unit|exn|array|list|option|int32|int64|nativeint|format6|lazy_t)$\")\n)\n\n[(constructor_name) (tag)] @constructor\n\n; Modules\n;--------\n\n[(module_name) (module_type_name)] @module\n\n; Attributes\n;-----------\n\n(attribute_id) @tag\n\n; Comments\n;---------\n\n[(comment) (line_number_directive) (directive) (shebang)] @comment\n";
Expand description

The syntax highlighting query for OCaml.