1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #913 resolved

F# verbatim string

Keith Dahlby
created an issue

F# verbatim strings do not correctly ignore \ (e.g. https://github.com/TrueWill/FSM.NET/blob/master/TrueWill.Fsm/Parser.fs).

The rule for an F# "verbatim string" is:

(r'@"', String, 'lstring'),

I believe it would be more correct to reuse the C# rule:

(r'@"(""|[^"])*"', String),

Comments (3)

  1. Log in to comment