Skip to content

New SQL syntax highlighting breaks with SQL Server quoted names #6695

Open
@c0shea

Description

@c0shea

Description of the bug

Sublime in the latest version now highlights the closing square bracket of any quoted names in red to mark them as invalid. This previously didn't happen in older versions.

Image

Steps to reproduce

  1. Start ST in safe mode
  2. Open a new tab/file
  3. Set the syntax mode to SQL
  4. Paste in the following content
CREATE TABLE [Sales].[DailyMovement]
(
[StoreNumber] [smallint] NOT NULL,
[SaleDate] [datetime] NOT NULL
)

Expected behavior

The right square bracket shouldn't be highlighted in red

Actual behavior

The right square bracket is highlighted in red

Sublime Text build number

4200

Operating system & version

Windows 10

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions