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

Re: [jasspa] Addition to bad 'C' hilighting

Expand Messages
  • Jon Green
    ... Yep - darned must have not executed it again when I added the while (final trimming that killed the turkey). I like the S will give this a try. Sorry.
    Message 1 of 3 , Feb 26, 2007
    • 0 Attachment
      Phillips, Steven wrote:
      > Im not sure how this works because it shouldn't, the hilighting does not
      > support words in groups only single letters - following is a correction:
      >
      > hilight .hilight.c 2 "\\s\\{if <file://\\s\\{if>[ \t]*([
      > \t]*\\w+[ \t]*=[ \t]*\\w+[ \t]*)" .scheme.hlred
      > hilight .hilight.c 2 "\\s\\{while <file://\\s\\{while>[ \t]*([
      > \t]*\\w+[ \t]*=[ \t]*\\w+[ \t]*)" .scheme.hlred
      > Note I have changed the [a-zA-Z_0-9] to a \w as they are equivalent,
      > however I wonder whether this should be simply testing for 'if ( a =
      > S', this would spot things like 'if(a=b-1)' and any assignment in an
      > if/while can avoid this hilighting and compile warning by using double
      > brackets, i.e. 'if((a=b-1))'
      >
      > Steve
      >

      Yep - darned must have not executed it again when I added the while
      (final trimming that killed the turkey).

      I like the \S will give this a try.

      Sorry.
      Jon.
    Your message has been successfully submitted and would be delivered to recipients shortly.