From ba802a79fbee27fb619a541ae3ea80f99078c738 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 9 Nov 2015 20:53:42 +0100 Subject: [PATCH] Escape ] in regexp --- patacrep/songs/chordpro/lexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/songs/chordpro/lexer.py b/patacrep/songs/chordpro/lexer.py index 50048b4c..16f494b3 100644 --- a/patacrep/songs/chordpro/lexer.py +++ b/patacrep/songs/chordpro/lexer.py @@ -101,7 +101,7 @@ class ChordProLexer: @staticmethod def t_WORD(token): - r'[^{}\r\n\][\t ]+' + r'[^{}\r\n\]\[\t ]+' return token def t_LBRACKET(self, __token):