Thanks for sharing this project. I got the following error in the Sublime Text console:

Error loading completion: Error trying to parse file: Invalid escape in ~/Library/Application Support/Sublime Text 2/Packages/User/Drupal.sublime-completions:2384:18

Line 2384 of Drupal.sublime-completions contains:
{ "trigger": "(\w+)\", "contents": "(\w+)\(${1:/'}, ${2:line}, ${3:match)})" },

After removing that line, the same error occurred on this line:
{ "trigger": "\w+_theme\", "contents": "\w+_theme\(${1:/'}, ${2:line[0])})" },

CommentFileSizeAuthor
#2 Drupal.txt1013.23 KBtobias englert

Comments

tanc’s picture

Looks like an issue with the regex parsing. Can you please upload your sublime completions file somewhere?

tobias englert’s picture

StatusFileSize
new1013.23 KB

I got an parsing error too.

Error loading completion: Error trying to parse file: Invalid escape in ~/.config/sublime-text-2/Packages/User/Drupal.sublime-completions:35:42

Removing l. 35 fixed the error for me.

melonkernel’s picture

I deleted the line that it complained about and then it started to complain about a line much further down.
I wonder if it has to do with the file being very long. I tried removing the lines that it complained about, but it still complained about the same line number. around line number 12575.
When i deleted all the rows from that onwards (making sure that the JSON is valid, it stopped complaining.)
Although, i will make some more tests.