Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: source/common/rbbirpt.txt

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/common/rbbirpt.h ('k') | source/common/rbbiscan.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/rbbirpt.txt
diff --git a/source/common/rbbirpt.txt b/source/common/rbbirpt.txt
index 8e932a6037ac3438c86876093bd6f3db82760342..c27857eb2957f33636615d6f812e0fe1d443e606 100644
--- a/source/common/rbbirpt.txt
+++ b/source/common/rbbirpt.txt
@@ -1,7 +1,13 @@
#*****************************************************************************
#
-# Copyright (C) 2002-2003, International Business Machines Corporation and others.
+# Copyright (C) 2016 and later: Unicode, Inc. and others.
+# License & terms of use: http://www.unicode.org/copyright.html#License
+#
+#*****************************************************************************
+#*****************************************************************************
+#
+# Copyright (C) 2002-2016, International Business Machines Corporation and others.
# All Rights Reserved.
#
#*****************************************************************************
@@ -19,6 +25,7 @@
# This file is processed by a perl script "rbbicst.pl" to produce initialized C arrays
# that are then built with the rule parser.
#
+# perl rbbicst.pl < rbbirpt.txt > rbbirpt.h
#
# Here is the syntax of the state definitions in this file:
@@ -57,6 +64,7 @@
start:
escaped term ^break-rule-end doExprStart
white_space n start
+ '^' n start-after-caret ^break-rule-end doNoChain
'$' scan-var-name ^assign-or-rule doExprStart
'!' n rev-option
';' n start # ignore empty rules.
@@ -71,7 +79,21 @@ break-rule-end:
white_space n break-rule-end
default errorDeath doRuleError
-
+#
+# start of a rule, after having seen a '^' (inhibits rule chain in).
+# Similar to the main 'start' state in most respects, except
+# - empty rule is an error.
+# - A second '^' is an error.
+#
+start-after-caret:
+ escaped term doExprStart
+ white_space n start-after-caret
+ '^' errorDeath doRuleError # two '^'s
+ '$' scan-var-name ^term-var-ref doExprStart
+ ';' errorDeath doRuleError # ^ ;
+ eof errorDeath doRuleError
+ default term doExprStart
+
#
# ! We've just scanned a '!', indicating either a !!key word flag or a
# !Reverse rule.
« no previous file with comments | « source/common/rbbirpt.h ('k') | source/common/rbbiscan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698