kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/docs/schema/kythe-filter.conf (about)

     1  # Copyright 2016 The Kythe Authors. All rights reserved.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #   http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  #
    15  # This filter passes inline Kythe examples through the verifier and
    16  # source-highlights them. asciidoc must be run in the Kythe repository root for
    17  # it to find the filter script.
    18  #
    19  # Usage:
    20  #
    21  # [kythe,language,string-label]
    22  # ------------------------------------------------------------------------------
    23  # verifier-block
    24  # ------------------------------------------------------------------------------
    25  #
    26  # Example:
    27  #
    28  # [kythe,C++,"Type aliases are taliases"]
    29  # ------------------------------------------------------------------------------
    30  # //- @Counter defines TAlias
    31  # //- TAlias.node/kind /kythe/node/talias
    32  # using Counter = int;
    33  # ------------------------------------------------------------------------------
    34  
    35  [kythe-filter-style]
    36  kythe-style=template="passblock",posattrs=("style","language","label","graph","divstyle","verifierargs"),filter="{example_script} {backend} {style} {language} {label} {graph=1} {divstyle=''} {verifierargs='--nocheck_for_singletons'}",subs=()
    37  
    38  [blockdef-listing]
    39  template::[kythe-filter-style]