Skip to content

Commit 4e485f2

Browse files
authored
fix(basic) - closing quotation marks not required for a PRINT statement (#4137)
1 parent c2d29ac commit 4e485f2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Core Grammars:
2323
- fix(sql) - Fixed sql primary key and foreign key spacing issue [Dxuian]
2424
- fix(cpp) added flat_set and flat_map as a part of cpp 23 version [Lavan]
2525
- fix(yaml) - Fixed special chars in yaml [Dxuian]
26+
- fix(basic) - Fixed closing quotation marks not required for a PRINT statement [Somya]
2627

2728
New Grammars:
2829

@@ -56,6 +57,7 @@ CONTRIBUTORS
5657
[Osmocom]: https://github.com/osmocom
5758
[Álvaro Mondéjar]: https://github.com/mondeja
5859
[Lavan]: https://github.com/jvlavan
60+
[Somya]: https://github.com/somya-05
5961

6062

6163
## Version 11.10.0

src/languages/basic.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,13 @@ export default function(hljs) {
198198
keyword: KEYWORDS
199199
},
200200
contains: [
201-
hljs.QUOTE_STRING_MODE,
201+
{
202+
// Match strings that start with " and end with " or a line break
203+
scope: 'string',
204+
begin: /"/,
205+
end: /"|$/,
206+
contains: [ hljs.BACKSLASH_ESCAPE ]
207+
},
202208
hljs.COMMENT('REM', '$', { relevance: 10 }),
203209
hljs.COMMENT('\'', '$', { relevance: 0 }),
204210
{

0 commit comments

Comments
 (0)