summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/javacc/IntermediateParser.jj
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/main/javacc/IntermediateParser.jj')
-rw-r--r--config-model/src/main/javacc/IntermediateParser.jj15
1 files changed, 13 insertions, 2 deletions
diff --git a/config-model/src/main/javacc/IntermediateParser.jj b/config-model/src/main/javacc/IntermediateParser.jj
index cf0ad9eb101..cc03773f333 100644
--- a/config-model/src/main/javacc/IntermediateParser.jj
+++ b/config-model/src/main/javacc/IntermediateParser.jj
@@ -7,7 +7,6 @@
options {
UNICODE_INPUT = true;
CACHE_TOKENS = false;
- STATIC = false;
DEBUG_PARSER = false;
ERROR_REPORTING = true;
FORCE_LA_CHECK = true;
@@ -1845,7 +1844,8 @@ void rankProfileItem(ParsedRankProfile profile) : { }
| rankDegradation()
| constants(profile)
| matchFeatures(profile)
- | summaryFeatures(profile) )
+ | summaryFeatures(profile)
+ | strict(profile) )
}
/**
@@ -2079,6 +2079,15 @@ void summaryFeatures(ParsedRankProfile profile) :
}
}
+void strict(ParsedRankProfile profile) :
+{}
+{
+ <STRICT> <COLON> (
+ ( <TRUE> { profile.setStrict(true); } ) |
+ ( <FALSE> { profile.setStrict(false); } )
+ )
+}
+
/**
* This rule consumes a match-features block of a rank profile.
*
@@ -2526,6 +2535,7 @@ String identifier() : { }
| <LITERAL>
| <LOCALE>
| <LONG>
+ | <LOOSE>
| <LOWERBOUND>
| <LOWERCASE>
| <MACRO>
@@ -2573,6 +2583,7 @@ String identifier() : { }
| <STATIC>
| <STEMMING>
| <STRENGTH>
+ | <STRICT>
| <STRING>
| <STRUCT>
| <SUBSTRING>