Author: esr
Date: Mon Nov 23 05:20:38 2009
New Revision: 39895
URL: http://svn.gna.org/viewcvs/wesnoth?rev=39895&view=rev
Log:
Ignore concatenation signs when checking for missopellings.
Modified:
trunk/data/tools/wmllint
Modified: trunk/data/tools/wmllint
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=39895&r1=39894&r2=39895&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Mon Nov 23 05:20:38 2009
@@ -665,11 +665,11 @@
"sceptre",
]}
-pango_conversions = (("~", '<b>', '</b>'),
- ("@", '<span color="green">', "</span>"),
- ("#", '<span color="red">', "</span>"),
- ("*", '<span size="big">', "</span>"),
- ("`", '<span size="small">', "</span>"),
+pango_conversions = (("~", "<b>", "</b>"),
+ ("@", "<span color='green'>", "</span>"),
+ ("#", "<span color='red'>", "</span>"),
+ ("*", "<span size='big'>", "</span>"),
+ ("`", "<span size='small'>", "</span>"),
)
def pangostrip(message):
@@ -1805,7 +1805,8 @@
if d.check(lowered):
continue
# Strip leading punctuation and grotty Wesnoth highlighters
- while lowered and lowered[0] in " \t(`...@*'%_":
+ # Last char in this regexp is to ignore concatenation signs.
+ while lowered and lowered[0] in " \t(`...@*'%_+":
lowered = lowered[1:]
# Not interested in interpolations or numeric literals
if not lowered or lowered.startswith("$"):
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits