mirror of
https://github.com/valitydev/yamerl.git
synced 2024-11-06 02:45:23 +00:00
Move supported versions declaration
Supported versions declaration is moved from "yaml_tokens.hrl" to "yaml_parser.hrl" because it's used there.
This commit is contained in:
parent
fdadcf4500
commit
b0404a0290
@ -1,16 +1,3 @@
|
||||
%% -------------------------------------------------------------------
|
||||
%% Supported versions range.
|
||||
%% -------------------------------------------------------------------
|
||||
|
||||
-define(MIN_YAML_MAJOR_VERSION_SUPPORTED, 1).
|
||||
-define(MIN_YAML_MINOR_VERSION_SUPPORTED, 1).
|
||||
-define(MAX_YAML_MAJOR_VERSION_SUPPORTED, 1).
|
||||
-define(MAX_YAML_MINOR_VERSION_SUPPORTED, 2).
|
||||
-define(IMPLICIT_YAML_VERSION, {
|
||||
?MAX_YAML_MAJOR_VERSION_SUPPORTED,
|
||||
?MAX_YAML_MINOR_VERSION_SUPPORTED
|
||||
}).
|
||||
|
||||
%% -------------------------------------------------------------------
|
||||
%% Options.
|
||||
%% -------------------------------------------------------------------
|
||||
|
@ -4,6 +4,19 @@
|
||||
%% Erlang won't add "undefined" in our back to the allowed values in the
|
||||
%% type specifications.
|
||||
|
||||
%% -------------------------------------------------------------------
|
||||
%% Supported versions range.
|
||||
%% -------------------------------------------------------------------
|
||||
|
||||
-define(MIN_YAML_MAJOR_VERSION_SUPPORTED, 1).
|
||||
-define(MIN_YAML_MINOR_VERSION_SUPPORTED, 1).
|
||||
-define(MAX_YAML_MAJOR_VERSION_SUPPORTED, 1).
|
||||
-define(MAX_YAML_MINOR_VERSION_SUPPORTED, 2).
|
||||
-define(IMPLICIT_YAML_VERSION, {
|
||||
?MAX_YAML_MAJOR_VERSION_SUPPORTED,
|
||||
?MAX_YAML_MINOR_VERSION_SUPPORTED
|
||||
}).
|
||||
|
||||
%% -------------------------------------------------------------------
|
||||
%% Data types specifications.
|
||||
%% -------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user