 
 # path(lineNumber): (Deprecation|Warning|Error): <message>
 dubErrorFormat = /(.*?)\((\d+),(\d+)\): (Deprecation|Warning|Error): (.*)/g;
-dubErrorFormatRel = /(.*?)\((\d+),(\d+)\): (.*)/g;
+dubErrorFormatCont = /(.*?)\((\d+),(\d+)\): (.*)/g;
+wordLengthFormat = /^((?:[^\s\w]+)?\w+\b)/; # (optional special characters) + word until word boundary
 
 module.exports =
   class DubLinter

        @dubPath = newValue

    lint: (textEditor) =>
      return new Promise (resolve, reject) =>
        output = ""
        args = ["build", "--nodeps", "--combined", "-q"]

            dismissable: true
          handle()
          resolve []

    getWordLength: (textEditor, row, column) ->
      text = textEditor.getTextInBufferRange([[row, column], [row, column + 100]])
      match = wordLengthFormat.exec(text)
      console.log "Text: #{text}, Match: #{JSON.stringify()}"
      match?[1].length or 100
