Changeset 5621


Ignore:
Timestamp:
Aug 29, 2017, 4:55:30 AM (3 months ago)
Author:
cameron
Message:

Fix local language mode for Unicode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_compiler.cpp

    r5620 r5621  
    9292        PabloAST * pablo_two = pb.createAnd(mCCCompiler.compileCC(two), mAny);
    9393        PabloAST * one1 = pb.createAdvance(pablo_one, 1, "one1");
    94         PabloAST * follow = pb.createAnd(one1, pablo_two);
     94        PabloAST * follow = pb.createAnd(pb.createScanThru(pb.createAnd(mInitial, one1), mNonFinal), pablo_two);
    9595        pablo_follow = pb.createOr(pablo_follow, follow);
    9696    }
    97     PabloAST * result = pb.createAnd(pb.createMatchStar(pb.createAdvance(pablo_first, 1), pablo_follow), pb.createAdvance(pablo_final, 1));
     97    PabloAST * result = pb.createAnd(pb.createMatchStar(pb.createAdvance(pablo_first, 1), pb.createOr(pablo_follow, mNonFinal)), pb.createAdvance(pablo_final, 1));
    9898    return makeMarker(MarkerPosition::FinalPostPositionUnit, result);
    9999}
Note: See TracChangeset for help on using the changeset viewer.