mirror of
				https://github.com/stedolan/jq.git
				synced 2024-05-11 05:55:39 +00:00 
			
		
		
		
	
							
								
								
									
										5
									
								
								lexer.l
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								lexer.l
									
									
									
									
									
								
							@@ -42,8 +42,8 @@ struct lexer_param;
 | 
			
		||||
"!=" { return NEQ; }
 | 
			
		||||
"==" { return EQ; }
 | 
			
		||||
"as" { return AS; }
 | 
			
		||||
"search" { return SEARCH; }
 | 
			
		||||
"import" { return IMPORT; }
 | 
			
		||||
"module" { return MODULE; }
 | 
			
		||||
"def" { return DEF; }
 | 
			
		||||
"if" { return IF; }
 | 
			
		||||
"then" { return THEN; }
 | 
			
		||||
@@ -115,8 +115,7 @@ struct lexer_param;
 | 
			
		||||
}
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
[a-zA-Z_][a-zA-Z_0-9]*  { yylval->literal = jv_string(yytext); return IDENT;}
 | 
			
		||||
[a-zA-Z_][a-zA-Z_0-9]*::[a-zA-Z_][a-zA-Z_0-9]*  { yylval->literal = jv_string(yytext); return IDENT;}
 | 
			
		||||
([a-zA-Z_][a-zA-Z_0-9]*::)*[a-zA-Z_][a-zA-Z_0-9]*  { yylval->literal = jv_string(yytext); return IDENT;}
 | 
			
		||||
\.[a-zA-Z_][a-zA-Z_0-9]*  { yylval->literal = jv_string(yytext+1); return FIELD;}
 | 
			
		||||
 | 
			
		||||
[ \n\t]+  {}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user