Is there a root keyword in JavaScript or why does Sublime display it like this?
I used a variable called root
in a recent js project and Sublime3 displayed it like this:
So I am wondering if there is a root keyword in js, and if so, what does it do ... Otherwise I would like to know a way to stop sublime3 from displaying it differently ... The console, however, says ReferenceError: root is not defined
in me enter it there.
Hope you can help :)
source to share
root
was used as a variable in Node.js, however it was deprecated in version 6.
The announcement comes from this file in Sublime.
UPDATE : To remove a syntax rule, install PackageResourceViewer
as instructed here and then open the file JavaScript.sublime-syntax
, find the word root (currently only one) and delete it (and the next character |
). Note that you need to run Sublime as an administrator on Windows to edit the file.
source to share