diff --git a/src/adonisjs/public/report/js/report-annotations.js b/src/adonisjs/public/report/js/report-annotations.js index dc113e79..b3dafedb 100644 --- a/src/adonisjs/public/report/js/report-annotations.js +++ b/src/adonisjs/public/report/js/report-annotations.js @@ -300,6 +300,8 @@ class ReportManager { tokens.push([tk, tks, c-1, 'O', null]) tk = '' tks = -1 + if (c < text.length && ReportManager.septoken.includes(text[c])) + tokens.push([text[c], c, c, 'O', null]) } } else { if (tks == -1) @@ -407,6 +409,8 @@ class ReportManager { ReportManager.separators = [ ' ', '\n', '\r', '\t', '.', ',', ';', ':', '(', ')', '[', ']', '{', '}'] + ReportManager.septoken = [ + '.', ',', ';', ':', '(', ')', '[', ']', '{', '}'] // Copy of the same constants in annotator.js // isc: Illness Script Components