From d8883d357e25209747c8535bfd3b5a6e8d80dc57 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Thu, 25 Oct 2012 01:10:35 +0530 Subject: added: notes modified: license/gpl parsers/CodeBlocks.java parsers/WordDecoration.java --- parsers/WordDecoration.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'parsers/WordDecoration.java') diff --git a/parsers/WordDecoration.java b/parsers/WordDecoration.java index b2df37e..66a5183 100644 --- a/parsers/WordDecoration.java +++ b/parsers/WordDecoration.java @@ -9,14 +9,15 @@ public class WordDecoration implements Parser { private HashMap tagMap; public WordDecoration() { tagMap = new HashMap(); - tagMap.put("''","$6"); - tagMap.put("__","$6"); - tagMap.put("'''","$6"); - tagMap.put("%%%","
$6
"); + tagMap.put("''","$7"); + tagMap.put("__","$7"); + tagMap.put("'''","$7"); + tagMap.put("%%%","
$7
"); + tagMap.put("`","
$7
"); } public String parse(String fileContent) { Pattern pattern = - Pattern.compile("((\\'\\'\\')|(\\_\\_)|(\\'\\')|(\\%\\%\\%))(.+?)((\\2)|(\\3)|(\\4)|(\\5))", + Pattern.compile("((\\'\\'\\')|(\\_\\_)|(\\'\\')|(\\%\\%\\%))|(\\`))(.+?)((\\2)|(\\3)|(\\4)|(\\5)|(\\6))", Pattern.DOTALL); Matcher matcher = pattern.matcher(fileContent); StringBuffer sbuffer = new StringBuffer(); -- cgit v1.2.3