Skip to content

Syntax Error: Expected 'delete:', 'update:', comment, or whitespace but 'n' found when parsing .dbml files #25

@Drissnafii

Description

@Drissnafii

🐞 Bug Description

When I open or validate a .dbml file that includes note: fields or multi-line notes,
VS Code throws the following syntax error:


Expected "delete:", "update:", comment, or whitespace but "n" found.

⚙️ Environment

  • VS Code Version: 1.xx.x
  • vscode-dbml Version: 0.4.1
  • OS: Ubuntu 28.04
  • Node.js: 18.x (using pnpm + Docker)

💡 Steps to Reproduce

  1. Create a .dbml file with this content:
    Table users {
      id int [pk]
      username varchar [not null, unique, note: 'User name']
    }
    
    
    

❗ Expected Behavior

The .dbml file should open without any syntax errors.

⚠️ Actual Behavior

VS Code shows this parsing error:

Expected "delete:", "update:", comment, or whitespace but "n" found.

❤️ Additional Info

It seems the extension parser doesn’t recognize note: attributes in field definitions.
Would be great if this could be aligned with the official DBML syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions