hillion 2004/02/16 08:33:54 Modified: resources/org/apache/batik/css/parser/resources Messages.properties sources/org/apache/batik/css/parser Scanner.java Log: Added a specific error message for wrong CSS identifier start characters. Revision Changes Path 1.6 +3 -0 xml-batik/resources/org/apache/batik/css/parser/resources/Messages.properties Index: Messages.properties =================================================================== RCS file: /home/cvs/xml-batik/resources/org/apache/batik/css/parser/resources/Messages.properties,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Messages.properties 8 Aug 2003 11:39:28 -0000 1.5 +++ Messages.properties 16 Feb 2004 16:33:54 -0000 1.6 @@ -74,6 +74,9 @@ identifier = \ Identifier expected. +identifier.character = \ +Invalid identifier start character. + identifier.or.string = \ Identifier or string expected. 1.14 +3 -3 xml-batik/sources/org/apache/batik/css/parser/Scanner.java Index: Scanner.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/css/parser/Scanner.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- Scanner.java 8 Aug 2003 11:38:57 -0000 1.13 +++ Scanner.java 16 Feb 2004 16:33:54 -0000 1.14 @@ -539,7 +539,7 @@ default: if (!ScannerUtilities.isCSSIdentifierStartCharacter ((char)current)) { - throw new ParseException("character", + throw new ParseException("identifier.character", reader.getLine(), reader.getColumn()); } @@ -805,7 +805,7 @@ return; } nextChar(); - throw new ParseException("character", + throw new ParseException("identifier.character", reader.getLine(), reader.getColumn()); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]