<commit_before>\lstdefinelanguage{syntax}
  {
    morekeywords={
      atomic,
      begin, bool, break, by,
      class, cobegin, complex, compilerError, config, const, continue,
      def, distributed, do, domain,
      else, elt_type, enum,
      false, for, forall,
      goto,
      if, imag, in, index, int, inout, iterator,
      let, locale,
      module,
      nil,
      of, on, opaque, ordered, otherwise, out,
      param, pragma,
      real, record, reduce, return,
      scan, select, seq, serial, single, sparse, string, sync,
      then, true, type,
      uint, union, use,
      var,
      when, where, while,
      yield
    },
    sensitive=false,
    mathescape=true,
    columns=fullflexible,
    basicstyle=\small,
    keywordstyle=\footnotesize\ttfamily,
    commentstyle=\footnotesize\ttfamily,
    identifierstyle=\small\itshape,
    morecomment=[s]{`}{'},
    literate={-}{{\ttfamily -}}{1}
             {[OPT]}{{{\scriptsize $_{opt}$}}}{2}
  }

\lstnewenvironment{syntax}{\lstset{language=syntax,xleftmargin=2pc}}{}

\newcommand{\sntx}[1]{\lstinline[language=syntax]!#1!}<commit_msg>Steve pointed out how the terminal symbols were not handled properly in my first attempt.  Here is the next attempt at the syntax_listing file.<commit_after>\lstdefinelanguage{syntax}
  {
    sensitive=false,
    mathescape=true,
    columns=fullflexible,
    basicstyle=\small,
    keywordstyle=\footnotesize\ttfamily,
    commentstyle=\footnotesize\ttfamily,
    identifierstyle=\small\itshape,
    moredelim=[is][\small\ttfamily]{`}{'},
    literate={-}{{\ttfamily -}}{1}
             {[OPT]}{{{\scriptsize $_{opt}$}}}{2}
  }

\lstnewenvironment{syntax}{\lstset{language=syntax,xleftmargin=2pc}}{}

\newcommand{\sntx}[1]{\lstinline[language=syntax]!#1!}
{'fraction_non_alphanumeric': 0.1506228765571914, 'fraction_numerical': 0.0056625141562853904, 'mean_word_length': 3.4175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7185666', 'n_tokens_mistral': 581, 'n_tokens_neox': 558, 'n_words': 118}