wiki:PadrePluginYAML

Version 15 (modified by bowtie, 3 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 are 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
...
# comments like so
---
rootproperty: blah
section:
  one: two
  three: four
  Foo: Bar
  empty: ~
# ... 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