dbeaver / dbeaver

Free universal database tool and SQL client
https://dbeaver.io
Apache License 2.0
40.6k stars 3.5k forks source link

Some keywords in `CREATE VIEW` statement break syntax highlighting in the query #36181

Open ask9 opened 2 weeks ago

ask9 commented 2 weeks ago

Description

Adding "or replace" breaks syntax highlighting with colors.

create or replace view table_size as
SELECT
    c.relname,
    PG_RELATION_SIZE(C.oid) as size_bytes,
    PG_RELATION_SIZE(C.oid) as size_bytes2
FROM pg_class AS c

https://github.com/user-attachments/assets/7b802070-afec-43cb-88ad-cba0bc6eab5f

DBeaver Version

Enterprise Edition 24.2.4-202410172322

Operating System

Windows 10

Database and driver

PostgreSQL 16 PostgreSQL JDBC Driver 42.7.4

Steps to reproduce

No response

Additional context

No response

uslss commented 2 weeks ago

thanks for the report