Module Vscode_json.Grammar

type capture_pattern = {
  1. pattern_include : string;
}
val capture_pattern_enc : capture_pattern Json_encoding.encoding
val pp_capture_pattern : Ppx_deriving_runtime.Format.formatter -> capture_pattern -> Ppx_deriving_runtime.unit
val show_capture_pattern : capture_pattern -> Ppx_deriving_runtime.string
type capture = {
  1. capture_name : string option;
  2. capture_patterns : capture_pattern list option;
}
val capture_enc : capture Json_encoding.encoding
val pp_capture : Ppx_deriving_runtime.Format.formatter -> capture -> Ppx_deriving_runtime.unit
val show_capture : capture -> Ppx_deriving_runtime.string
type captures = (string * capture) list
val captures_enc : captures Json_encoding.encoding
val pp_captures : Ppx_deriving_runtime.Format.formatter -> captures -> Ppx_deriving_runtime.unit
val show_captures : captures -> Ppx_deriving_runtime.string
type endCaptures = captures
val pp_endCaptures : Ppx_deriving_runtime.Format.formatter -> endCaptures -> Ppx_deriving_runtime.unit
val show_endCaptures : endCaptures -> Ppx_deriving_runtime.string
val endCaptures_enc : captures Json_encoding.encoding
type pattern = {
  1. pat_match : string option;
  2. pat_include : string option;
  3. pat_name : string option;
  4. pat_captures : captures option;
  5. pat_beginCaptures : captures option;
  6. pat_whileCaptures : captures option;
  7. pat_endCaptures : endCaptures option;
  8. pat_begin : string option;
  9. pat_end : string option;
  10. pat_patterns : pattern list option;
  11. pat_comment : string option;
  12. pat_contentName : string option;
  13. pat_while : string option;
}
val pattern_enc : pattern Json_encoding.encoding
val pp_pattern : Ppx_deriving_runtime.Format.formatter -> pattern -> Ppx_deriving_runtime.unit
val show_pattern : pattern -> Ppx_deriving_runtime.string
type patterns = (string * pattern) list
val patterns_enc : patterns Json_encoding.encoding
val pp_patterns : Ppx_deriving_runtime.Format.formatter -> patterns -> Ppx_deriving_runtime.unit
val show_patterns : patterns -> Ppx_deriving_runtime.string
type grammar = {
  1. prefix : string Manifest.list_or_one option;
  2. body : string Manifest.list_or_one option;
  3. fileTypes : string list option;
  4. name : string option;
  5. scope : string option;
  6. scopeName : string option;
  7. patterns : pattern list option;
  8. repository : patterns option;
  9. description : string option;
  10. copyright : string option;
  11. schema : string option;
  12. injectionSelector : string option;
}
val grammar_enc : grammar Json_encoding.encoding
val pp_grammar : Ppx_deriving_runtime.Format.formatter -> grammar -> Ppx_deriving_runtime.unit
val show_grammar : grammar -> Ppx_deriving_runtime.string
val schema : string