         endCaptures:
             0:
                 name: 'string.other.math.inline.end.latex'
+        patterns: [
+            {
+                include: '#commentMeta'
+            }
+        ]
     }
     displayMathMode: {
         comment: 'This can be triggered using $$ or \[ \]. Both can be used in the same pair.'

        name: 'support.function.makeat.latex'
        begin: '(\\\\)makeatletter\\b'
        end: '(\\\\)makeatother\\b'
    }

                include: '#argumentScope'
            }
        ]
    }
    lineComment: {
        comment: 'Line comment. This will find an available % sign and match it and all that follows as a comment. Be sure to prevent edge cases like \\% or \\\% by only ever implementing in this order: doublebackslash -> escaped % -> %.'
