flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From josebarra...@apache.org
Subject [50/50] [abbrv] git commit: [flex-falcon] [refs/heads/maven] - remove JFlex parse warnings
Date Thu, 24 Apr 2014 16:06:22 GMT
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/2bd7b243
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/2bd7b243
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/2bd7b243

Branch: refs/heads/maven
Commit: 2bd7b2437599cbaa554812aba606d01bd599a208
Parents: 794893c
Author: Jose Barragan <josebarragan@apache.org>
Authored: Fri Feb 28 19:10:52 2014 +0100
Committer: Jose Barragan <josebarragan@apache.org>
Committed: Thu Apr 24 18:03:14 2014 +0200

----------------------------------------------------------------------
 .../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/2bd7b243/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/2bd7b243/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());
 }


Mime
View raw message