Loading ...
Sorry, an error occurred while loading the content.

139340Re: Improve context syntax file

Expand Messages
  • Nikolay Pavlov
    Sep 26, 2013
    • 0 Attachment


      On Sep 26, 2013 2:18 PM, "Marco" <lists@...> wrote:
      >
      > On 2013–09–26 Nikolay Pavlov wrote:
      >
      > > > Since there is little chance that an underscore will immediately follow a
      > > > control sequence anyway, I don't think defining it for the entire syntax
      > > file
      > > > will cause any problem.
      > >
      > > It is very common in LaTeX math:
      > >
      > >     \int_a^b
      >
      > “a” is not a control sequence.

      Assuming _ is defined to be a part of a command this will incorrectly highlight _a with the same color as \int. Thus you cannot just follow that advice.

      > > . Can't say anything about context though.
      >
      > The maths looks almost the same, it's mostly TeX anyway.
      >
      > > In LaTeX/TeX syntax file AFAIR _ is marked as an error outside of
      > > math regions though.
      >
      > Not so in ConTeXt. Underscores and circumflex accents are valid
      > input:
      >
      >   \starttext
      >     This_is_valid  %% the _ is not marked as error, correct
      >     So ^ is ^ this %% the ^ is marked as error, although it's valid input
      >   \stoptext
      >
      > Marco

      --
      --
      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
       
      ---
      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 13 messages in this topic