You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jo...@apache.org on 2014/03/23 14:09:45 UTC

[11/17] git commit: [flex-falcon] [refs/heads/maven] - remove JFlex parse warnings

remove JFlex parse warnings


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/019dc966
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/019dc966
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/019dc966

Branch: refs/heads/maven
Commit: 019dc966feb190b284478285a582ea297ea73496
Parents: 3802432
Author: Jose Barragan <jo...@apache.org>
Authored: Fri Feb 28 19:10:52 2014 +0100
Committer: Jose Barragan <jo...@apache.org>
Committed: Sun Mar 23 14:09:19 2014 +0100

----------------------------------------------------------------------
 .../flex/compiler/internal/parsing/as/RawASDocTokenizer.lex    | 4 ++--
 .../flex/compiler/internal/parsing/as/RawASTokenizer.lex       | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/019dc966/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASDocTokenizer.lex
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASDocTokenizer.lex b/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASDocTokenizer.lex
index 03b7a8f..5312ac9 100644
--- a/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASDocTokenizer.lex
+++ b/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASDocTokenizer.lex
@@ -194,7 +194,7 @@ NS_WHITE_SPACE_CHAR=[\r\n\t\b\012]
 	startOrContinueAggregate();
 }
 
-<STRING1> ([\\](.|"\n"))+
+<STRING1> ([\\]([^]|"\n"))+
 {
 	startOrContinueAggregate();
 }
@@ -231,7 +231,7 @@ NS_WHITE_SPACE_CHAR=[\r\n\t\b\012]
 	return buildToken(TOKEN_ASDOC_TAG);
 	}
 
-<YYINITIAL, TAG, STRING1> .|"\n"
+<YYINITIAL, TAG, STRING1> [^]|"\n"
 {
 	// just ignore anything that we don't recognize
 	// System.out.println(getContext(yyline));

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/019dc966/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASTokenizer.lex
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASTokenizer.lex b/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASTokenizer.lex
index f0fd6b6..d814d45 100644
--- a/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASTokenizer.lex
+++ b/compiler/src/org/apache/flex/compiler/internal/parsing/as/RawASTokenizer.lex
@@ -845,7 +845,7 @@ REGEX_CLASS="[" ({REGEX_ESCAPE}|[^\n\r\]\\])* "]"
 {
 }
 
-<TYPED_COLLECTION, TYPED_COLLECTION_LITERAL> .|"\n"
+<TYPED_COLLECTION, TYPED_COLLECTION_LITERAL> [^]|"\n"
 {
 	yypushback(1);
 	typedDepth = 0;
@@ -932,7 +932,7 @@ REGEX_CLASS="[" ({REGEX_ESCAPE}|[^\n\r\]\\])* "]"
 	return buildToken(TOKEN_E4X_EQUALS);
 }
 
-<E4X> .|"\n"
+<E4X> [^]|"\n"
 {
 	yypushback(1);
 	yybegin(e4xTagDepth > 0 ? E4XTEXTVALUE : YYINITIAL);
@@ -1319,7 +1319,7 @@ REGEX_CLASS="[" ({REGEX_ESCAPE}|[^\n\r\]\\])* "]"
 	yybegin(YYINITIAL);
 }
 
-<YYINITIAL, STRINGLITERAL, ESCAPE_SEQUENCE, TYPED_COLLECTION, TYPED_COLLECTION_LITERAL> .|"\n"
+<YYINITIAL, STRINGLITERAL, ESCAPE_SEQUENCE, TYPED_COLLECTION, TYPED_COLLECTION_LITERAL> [^]|"\n"
 {
 	addBadCharacterProblem(yytext());
 }