Changeset 3912 in josm


Ignore:
Timestamp:
Feb 18, 2011 7:37:37 PM (2 years ago)
Author:
bastiK
Message:

fix last ci

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/parser/MapCSSParser.java

    r3911 r3912  
    546546          jj_consume_token(EQUAL); 
    547547                                      op=Condition.Op.ONE_OF; 
    548           val = string_or_ident(); 
    549548          break; 
    550549        case CARET: 
     
    552551          jj_consume_token(EQUAL); 
    553552                                      op=Condition.Op.BEGINS_WITH; 
    554           val = string_or_ident(); 
    555553          break; 
    556554        case DOLLAR: 
     
    558556          jj_consume_token(EQUAL); 
    559557                                       op=Condition.Op.ENDS_WITH; 
    560           val = string_or_ident(); 
    561558          break; 
    562559        case STAR: 
     
    564561          jj_consume_token(EQUAL); 
    565562                                     op=Condition.Op.CONTAINS; 
    566           val = string_or_ident(); 
    567563          break; 
    568564        default: 
     
    11741170    if (jj_scan_token(DOLLAR)) return true; 
    11751171    if (jj_scan_token(EQUAL)) return true; 
    1176     if (jj_3R_56()) return true; 
    11771172    return false; 
    11781173  } 
     
    11811176    if (jj_scan_token(CARET)) return true; 
    11821177    if (jj_scan_token(EQUAL)) return true; 
    1183     if (jj_3R_56()) return true; 
    11841178    return false; 
    11851179  } 
     
    11881182    if (jj_scan_token(TILDE)) return true; 
    11891183    if (jj_scan_token(EQUAL)) return true; 
    1190     if (jj_3R_56()) return true; 
    11911184    return false; 
    11921185  } 
     
    12481241    } 
    12491242    } 
     1243    return false; 
     1244  } 
     1245 
     1246  private boolean jj_3R_55() { 
     1247    if (jj_scan_token(COLON)) return true; 
     1248    if (jj_scan_token(IDENT)) return true; 
     1249    return false; 
     1250  } 
     1251 
     1252  private boolean jj_3R_56() { 
     1253    Token xsp; 
     1254    xsp = jj_scanpos; 
     1255    if (jj_3R_73()) { 
     1256    jj_scanpos = xsp; 
     1257    if (jj_3R_74()) return true; 
     1258    } 
     1259    return false; 
     1260  } 
     1261 
     1262  private boolean jj_3R_73() { 
     1263    if (jj_scan_token(IDENT)) return true; 
    12501264    return false; 
    12511265  } 
     
    12591273  } 
    12601274 
    1261   private boolean jj_3R_55() { 
    1262     if (jj_scan_token(COLON)) return true; 
    1263     if (jj_scan_token(IDENT)) return true; 
    1264     return false; 
    1265   } 
    1266  
    1267   private boolean jj_3R_56() { 
    1268     Token xsp; 
    1269     xsp = jj_scanpos; 
    1270     if (jj_3R_73()) { 
    1271     jj_scanpos = xsp; 
    1272     if (jj_3R_74()) return true; 
    1273     } 
    1274     return false; 
    1275   } 
    1276  
    1277   private boolean jj_3R_73() { 
    1278     if (jj_scan_token(IDENT)) return true; 
    1279     return false; 
    1280   } 
    1281  
    12821275  private boolean jj_3R_27() { 
    12831276    if (jj_3R_50()) return true; 
     
    18581851    if (jj_scan_token(STAR)) return true; 
    18591852    if (jj_scan_token(EQUAL)) return true; 
    1860     if (jj_3R_56()) return true; 
    18611853    return false; 
    18621854  } 
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/parser/MapCSSParser.jj

    r3911 r3912  
    354354                    <EQUAL> { op=Condition.Op.EQ; } 
    355355                | 
    356                     <TILDE> <EQUAL> { op=Condition.Op.ONE_OF; } val=string_or_ident() 
    357                 | 
    358                     <CARET> <EQUAL> { op=Condition.Op.BEGINS_WITH; } val=string_or_ident() 
    359                 | 
    360                     <DOLLAR> <EQUAL> { op=Condition.Op.ENDS_WITH; } val=string_or_ident() 
    361                 | 
    362                     <STAR> <EQUAL> { op=Condition.Op.CONTAINS; } val=string_or_ident() 
     356                    <TILDE> <EQUAL> { op=Condition.Op.ONE_OF; } 
     357                | 
     358                    <CARET> <EQUAL> { op=Condition.Op.BEGINS_WITH; } 
     359                | 
     360                    <DOLLAR> <EQUAL> { op=Condition.Op.ENDS_WITH; } 
     361                | 
     362                    <STAR> <EQUAL> { op=Condition.Op.CONTAINS; } 
    363363            ) 
    364364            s() 
Note: See TracChangeset for help on using the changeset viewer.