mikestead / hx-yaml

A cross-platform YAML 1.2 parser & renderer for Haxe.
MIT License
75 stars 28 forks source link

Don't #error during completion #14

Closed Gama11 closed 7 years ago

Gama11 commented 7 years ago

A .hxml file only used for completion might not define a target. Since the values don't matter much there, we can just fall back to something that at least parses and avoid breaking completion.

Example:

https://github.com/vshaxe/vshaxe/commit/a351d286cf4b3bcb13fa143348a9c456d107374d#diff-7c45353abd7bc95c3295a8afc48a11b8R5

mikestead commented 7 years ago

@Gama11 cheers