From cad32d9b830b7b437cd299e87fbdd01658407326 Mon Sep 17 00:00:00 2001 From: Bram Stappers Date: Wed, 28 Jun 2017 15:28:25 +0200 Subject: [PATCH] 18984: [PMD] Added support for Python 2 backticks (`). --- pmd-python/etc/grammar/python.jj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmd-python/etc/grammar/python.jj b/pmd-python/etc/grammar/python.jj index 60f723870c..1f97f9d948 100644 --- a/pmd-python/etc/grammar/python.jj +++ b/pmd-python/etc/grammar/python.jj @@ -52,6 +52,7 @@ TOKEN : /* SEPARATORS */ | < COMMA: "," > | < DOT: "." > | < COLON: ":" > +| < BACKTICK: "`" > } @@ -280,4 +281,4 @@ MORE : /* Strings */ | <"\r"> { image.setCharAt(image.length()-1, '\n'); } | <~["\n","\r"]> | <"\\" ~["\n","\r"]> -} \ No newline at end of file +}