Tuchkata / styles-highlighter

Styles highlighter plugin for the Atom text editor.
MIT License
3 stars 1 forks source link

Uncaught Error: missing terminating ] for character class #14

Open gourabp opened 2 years ago

gourabp commented 2 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.59.0 x64 Electron: 9.4.4 OS: macOS 12.0.1 Thrown From: styles-highlighter package 2.4.0

Stack Trace

Uncaught Error: missing terminating ] for character class

At /private/var/folders/hm/5fw_5ztj0qv9mp0l1bz6vfsh0000gn/T/AppTranslocation/01E315A7-6AC8-4540-B135-19889B0B7697/d/Atom.app/Contents/Resources/app.asar/node_modules/superstring/index.js:256

Error: missing terminating ] for character class
    at TextBuffer.findAllInRangeSync (/app.asar/node_modules/superstring/index.js:256:44)
    at TextBuffer.findAllInRangeSync (/Users/gourabpattanayak/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:498917)
    at TextBuffer.scanInRange (/Users/gourabpattanayak/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:497822)
    at TextEditor.scanInBufferRange (/Users/gourabpattanayak/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:43390)
    at Object.markSelection (/packages/styles-highlighter/lib/styles-highlighter.coffee:85:13)
    at Object.markFirstStyle (/packages/styles-highlighter/lib/styles-highlighter.coffee:102:6)
    at /packages/styles-highlighter/lib/styles-highlighter.coffee:32:101)
    at CommandRegistry.handleCommandEvent (/Users/gourabpattanayak/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:352663)
    at CommandRegistry.dispatch (/Users/gourabpattanayak/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:351138)
    at AtomEnvironment.dispatchContextMenuCommand (/Users/gourabpattanayak/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:1:786983)
    at EventEmitter.t (/Users/gourabpattanayak/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:1:795037)
    at EventEmitter.emit (events.js:223:5)
    at Object.onMessage (electron/js2c/renderer_init.js:115:818)

Commands

     -1:11.7.0 core:paste (input.hidden-input)
  4x -1:10.4.0 core:save (input.hidden-input)
  9x -1:04.3.0 core:copy (input.hidden-input)
     -0:15.7.0 styles-highlighter:markFirstStyle (span.syntax--text.syntax--plain.syntax--null-grammar)

Non-Core Packages

comment-style 0.2.0 
highlight-selected 0.17.0 
styles-highlighter 2.4.0