Open michaelhogg opened 9 years ago
@michaelhogg,
Not worked your improvement branch for me.
Successful highlight Unicode symbols.
Traceback (most recent call last):
File "E:\Sublime Text 3\sublime_plugin.py", line 389, in run_callback
expr()
File "E:\Sublime Text 3\sublime_plugin.py", line 428, in <lambda>
run_callback('on_load', callback, lambda: callback.on_load(v))
File "E:\Sublime Text 3\Data\Packages\sublime_unicode_nbsp\sublime_unicode_nbsp.py", line 82, in on_load
self.defered_update(view)
File "E:\Sublime Text 3\Data\Packages\sublime_unicode_nbsp\sublime_unicode_nbsp.py", line 76, in defered_update
func()
File "E:\Sublime Text 3\Data\Packages\sublime_unicode_nbsp\sublime_unicode_nbsp.py", line 71, in func
self.update(view)
File "E:\Sublime Text 3\Data\Packages\sublime_unicode_nbsp\sublime_unicode_nbsp.py", line 137, in update
view.add_regions('HighlightUnicodeJunk', regions, color_name, icon, flags)
File "E:\Sublime Text 3\sublime.py", line 1031, in add_regions
sublime_api.view_add_regions(self.view_id, key, regions, scope, icon, flags)
TypeError: String required
The problem is reproduced for me in a version of Sublime Text without plugins and user settings.
In my %Packages%
folder I run command git clone -b improvements https://github.com/michaelhogg/sublime_unicode_nbsp.git
→ I restart my Sublime Text → I get stack trace. Unicode symbols not highlight for me.
master branch.
master
branch largely duplicates highlight-dodgy-chars plugin.Operating system and version: Windows 10.0.14393 Sublime Text: Build 3126
Thanks.
Many thanks for creating this great plugin Possan :)
I've made a few improvements:
sublime_unicode_nbsp.pyc
created by Sublime.UCH.sublime-settings
.view.erase_regions()
. No region exists with keyHighlightUnicodeListener
.