Hello. Modifying the âPython.tmLanguageâ file I can capture the words import/from/as so as to colour them within a theme-file using:
<string>\b(?:(import)|(from)|(as))\b</string>
Is it possible to capture the other words (the libraries) that occur on the same line, so that I might colour them differently?
However, I would be happy just to capture the whole line that begins with either import or from
Also, is it technically possible to then reference the captured library-names elsewhere in the Python file? Iâm thinking that all references to the library could use the same colour that is given to them on the import/from line. *
Andy.*