Author: esr
Date: Mon Nov  3 09:32:35 2008
New Revision: 30566

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30566&view=rev
Log:
Correct handling of exceptional cases involving legitimate spellings
ending in single quote.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=30566&r1=30565&r2=30566&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Mon Nov  3 09:32:35 2008
@@ -1199,7 +1199,12 @@
                 # Not interested in interpolations or numeric literals
                 if not lowered or lowered.startswith("$"):
                     continue
-                # Suffix handling
+                # Suffix handling. Done in two passes because some
+                # Dwrven dialect words end in a single quote
+                while lowered and lowered[-1] in "_-*).,:;?!& \t":
+                    lowered = lowered[:-1]
+                if lowered and d.check(lowered):
+                    continue;
                 while lowered and lowered[-1] in "_-*').,:;?!& \t":
                     lowered = lowered[:-1]
                 # Not interested in interpolations or numeric literals


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to