diff --git a/docs/BOSS Metadata File Syntax.html b/docs/BOSS Metadata File Syntax.html index abed0fa2..29905d9a 100644 --- a/docs/BOSS Metadata File Syntax.html +++ b/docs/BOSS Metadata File Syntax.html @@ -84,7 +84,6 @@ This documentation is a work in progress, covering a syntax that is also still a
typecontentcontentfile:, http: or https:. URLs can be labelled by writing the label after the URL, with a space separating them, and enclosing the URL and label in double quotes.
conditionlangerrorExample: +
Examples:
condition: 'file("Silgrad_Tower.esm")'
type: warn
content: Use either Silgrad_Tower.esm or Silgrad_Tower_T.esm but not both together.
+A content string of
+See http://www.example.com for more information.
+would be displayed as
+
See http://www.example.com for more information.+while +
See "http://www.example.com example link" for more information.
+would be displayed as
+See example link for more information.
Not to be confused with the structure of the metadata file itself, this structure can be used to hold filenames. It has two forms: the first is a simple string, and the second is a key-value map. All values in the map are strings. @@ -249,18 +256,6 @@ msg: content: 'Do not clean. "Dirty" edits are intentional and required for the mod to function.' -
URLs in message content strings will be turned into hyperlinks in BOSS's user interface. Recognised URLs are those that start with file:, http: or https: and contain no spaces (valid URLs can't contain spaces anyway). URLs can be labelled by writing the label after the URL, with a space separating them, and enclosing the URL and label in double quotes.
-
Examples:
-http://www.example.com
-becomes
-
http://www.example.com-while -
"http://www.example.com example link"
-becomes
-example link- -
Condition strings can be used to ensure that data is only acted on by BOSS under certain circumstances. They are very similar to boolean conditional expressions in programming languages such as Python, though more limited. Their EBNF grammar is:
[ negator ], function, { junctor, [ negator ], function } ;
diff --git a/src/parsers.h b/src/parsers.h
index 4b1b1b76..45ff40df 100644
--- a/src/parsers.h
+++ b/src/parsers.h
@@ -2,7 +2,7 @@
A plugin load order optimiser for games that use the esp/esm plugin system.
- Copyright (C) 2012 WrinklyNinja
+ Copyright (C) 2012-2013 WrinklyNinja
This file is part of BOSS.
@@ -341,10 +341,10 @@ namespace boss {
comparator %=
unicode::string("==")
| unicode::string("!=")
- | unicode::string("<")
- | unicode::string(">")
| unicode::string("<=")
| unicode::string(">=")
+ | unicode::string("<")
+ | unicode::string(">")
;
expression.name("expression");
diff --git a/src/tester.cpp b/src/tester.cpp
index 651d11c2..ea233f6f 100644
--- a/src/tester.cpp
+++ b/src/tester.cpp
@@ -2,6 +2,8 @@
#include