Skip to content

VB.NET - Quotes break on included '@' symbol #2781

@dipsylala

Description

@dipsylala

Information

  • Language: VB.NET
  • Plugins: None

Description
When quote marks include an '@' sign the opening quotes are not recognised

In the following example, The first line is shown incorrectly highlighted, the second works.

bob = new SqlCommand("Select * from test Where Code=@Code");
bob = new SqlCommand("Select * from test Where Code=Code");

image

Test page

Would this be as simple as adding '@' to prism-basic.js's string pattern? I'm wary of potential regression issues. on other languages that extend it.

'string': {
		pattern: /"(?:""|[@!#$%&'()*,\/:;<=>?^_ +\-.A-Z\d])*"/i,
		greedy: true
	},

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions