       0:
         name: 'support.function.makeat.latex'
     patterns: [
-      { include: '#commentMeta' }
+      { include: '#controlWordWithAt' }
+      { include: '$base'}
     ]
   }
   inputFile: {

    name: 'support.function.general.latex'
    match: '\\\\[a-zA-Z]+'
  }
  accents: {
    comment: 'For standard latex accent macros such as \^ or \`. Not used for now, at least until better rules are developed.'
    name: 'constant.character.accent.latex'
    match: '''\\\\([\\`\\'\\^\\"\\~\\=\\.]\\s*(\\w|\\{\\w?\\})|[Hcklbdruv]\\{\\w?\\})'''
  }
  hypersetup: {
    comment: 'Recongnises hypersetup environment. Can be extended to be a general key-option scoper, but this (potentially) allows custom colours for known keys.'
    name: 'meta.preamble.latex'
    begin: '\\\\hypersetup(?=[^a-zA-Z@])'
    beginCaptures:
      0:
        name: 'keyword.control.preamble.hypersetup.latex'
    end: '(?<=\\})|(^\\s*$)'
    endCaptures:
      1:
        name: 'invalid.illegal.latex'
    patterns: [
      { include: '#argumentScope' }
    ]
  }
  lineComment: {
    comment: 'Line comment. This will find an available % sign and match it to just before another % (where it looks for a magic comment) or the end.'

# Rules to be implemented. Please add to repository and link to a 'meta' to include.
# The following rules correspond to the ten special latex characters. They are applied at the outmost level, but can be called inside patterns by using `$base`
patterns: [
  { include: '#metaControl' } # must go first to catch escaped sequences
  { include: '#metaPercent' }
  { include: '#metaDollar' }
  { include: '#metaTilde' }
