wiki:PadrePluginYAML

Version 12 (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

  • directives is supported only for the %YAML 1.1 or none
%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