Too many parentheses seem to result in incorrect styles #4179
Open
Description
Describe the issue/behavior that seems buggy
The following code should display correctly, but when I limit the length of a VARCHAR, the style becomes incorrect
Sample Code or Instructions to Reproduce
<template>
<highlightjs language="sql" :code="testSql" />
<highlightjs language="sql" :code="testSql2" />
</template>
<script setup name="bizSimple">
const testSql = 'CREATE TABLE ads_jyzs_stm_sale_store_cd(\n' +
' id VARCHAR,\n' +
' datedday DATE,\n' +
' org_gid INT4,\n' +
' store_gid INT4,\n' +
' store_code VARCHAR,\n' +
' store_name VARCHAR,\n' +
' salamt DECIMAL(24,4),\n' +
' pct DECIMAL(24,4),\n' +
' salqty DECIMAL(24,4),\n' +
' bckqty DECIMAL(24,4),\n' +
' tar_salamt DECIMAL(24,4),\n' +
' cv INT4,\n' +
' mb_cv INT4,\n' +
' mb_sv INT4,\n' +
' shelfsale_skucnt INT8,\n' +
' PRIMARY KEY (id)\n' +
')'
const testSql2 = 'CREATE TABLE ads_jyzs_stm_sale_store_cd(\n' +
' id VARCHAR,\n' +
' datedday DATE,\n' +
' org_gid INT4,\n' +
' store_gid INT4,\n' +
' store_code VARCHAR(32),\n' +
' store_name VARCHAR,\n' +
' salamt DECIMAL(24,4),\n' +
' pct DECIMAL(24,4),\n' +
' salqty DECIMAL(24,4),\n' +
' bckqty DECIMAL(24,4),\n' +
' tar_salamt DECIMAL(24,4),\n' +
' cv INT4,\n' +
' mb_cv INT4,\n' +
' mb_sv INT4,\n' +
' shelfsale_skucnt INT8,\n' +
' PRIMARY KEY (id)\n' +
')'
</script>
Expected behavior
the same style before and after the change
Additional context