Autoloading an independent fragment of a package grammar


#1

I’ve tweaked a package grammar and want to protect it from future package upgrades w/out blocking them. Specifically, I want to put the following code (which would work in file latex.cson of package language-latex) to somewhere where it would load independently of the content of (but preferably after loading) the package grammar. Any suggestions? (Feel free to modify the code to fit the context.)

{
'begin': '`'
'beginCaptures':
  '0':
    'name': 'punctuation.definition.string.begin.latex'
'end': '\''
'endCaptures':
  '0':
    'name': 'punctuation.definition.string.end.latex'
'name': 'string.quoted.single.latex'
'patterns': [
  {
    'include': '$base'
  }
]
}