Sublime Forum

Creating custom syntax file, scope not assigned

#1

I’m trying to create a custom syntax file to use with my application’s log files. I have created an INFO scope for info messages that are logged. This works well except in the cases where I seem to have very large line logged (a single line in this case is 95,335 characters long. The question is, is there a limit on the amount of text that can be found to assign a scope to? All of my other INFO lines are an average of a couple hundred characters or less, but this is a response from a web service that is very large.

My reg ex is really simple: ‘^.?[INFO].$’

regexr.com matches both the shorter logged messages and the super long one. But sublime text still doesn’t assign the scope to the larger one. Is this just a limitation of the software?

Thanks!
Kyle

0 Likes

#2
1 Like

#3

Thank you for the link!

Kyle

0 Likes