working on syntax highlight on pattern-library