Sublime Forum

Debugging Indent File

#1

Howdy, y’all. I’m working on developing an indent file for the LiveCode language, but it’s not working.

Since I can’t get the code to render, you can get it from https://github.com/macMikey/livecode-sublimetext/blob/master/livecode-indent.tmpreferences

If I create a .livecodescript file and type something like

on test
answer “hello”
end test

The indent does not change. I have fiddled with the regex but still can’t get the indenting to happen, so I tried using the view->indentation menu, but that doesn’t seem to be helping. If I intentionally introduce a syntax error and save the file, ST complains, so it is seeing the file.

0 Likes

#2

the base scope for the LiveCode syntax is source.livecode, whereas your tmPreferences file targets source.livecodescript

0 Likes

#3

Excuse the noob questions, but the file suffix that we’re targeting are .livecodescript files, so why is the base .livecode?

0 Likes

#4

base scope and file extension often don’t match

for example, many file extensions can have the same syntax highlighting definition

0 Likes