wiki:PadrePluginYAML

Version 10 (modified by bowtie, 2 years ago) (diff)

--

Padre::Plugin::YAML

YAML plug-in that provides background syntax checking

To-Do

  • tidy up code
  • syntax dose not show a green square when clean

Limitations

by using YAML::XS

  • supports %TAG = %YAML 1.1 or no %TAG
    %YAML 1.1
    # --- document separator
    ---
    plack_middlewares:
      -
        - Expires
        - Deflater
        - StackTrace
        - Debug
        - panels
        -
          - Parameters
          - Dancer::Version
          - Dancer::Settings
          - Memory
          - PerlConfig
          - DBITrace 
          - ModuleVersions
    # ... indicate the end of a document
    ...
    # --- document separator
    ---
    time: 20:03:47
    player: Sammy Sosa
    action: grand slam
    # ... indicate the end of a document
    ...
    

what no validation!

Debugging

  • Use the following to track down "Unknown YAML error"
    perl dev -a -t Padre::Plugin::YAML::Syntax