Module Vscode_json.Grammar
type capture_pattern = {
pattern_include : string;
}
val pp_capture_pattern :
Ppx_deriving_runtime.Format.formatter ->
capture_pattern ->
Ppx_deriving_runtime.unit
type capture = {
capture_name : string option;
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
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 = {
pat_match : string option;
pat_include : string option;
pat_name : string option;
pat_captures : captures option;
pat_beginCaptures : captures option;
pat_whileCaptures : captures option;
pat_endCaptures : endCaptures option;
pat_begin : string option;
pat_end : string option;
pat_patterns : pattern list option;
pat_contentName : string option;
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 = {
prefix : string Manifest.list_or_one option;
body : string Manifest.list_or_one option;
fileTypes : string list option;
name : string option;
scope : string option;
scopeName : string option;
patterns : pattern list option;
repository : patterns option;
description : string option;
copyright : string option;
schema : string option;
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