Skip to content

Commit

Permalink
fix(basic) - closing quotation marks not required for a PRINT state…
Browse files Browse the repository at this point in the history
…ment (#4137)
  • Loading branch information
somya-05 authored Oct 22, 2024
1 parent c2d29ac commit 4e485f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Core Grammars:
- fix(sql) - Fixed sql primary key and foreign key spacing issue [Dxuian]
- fix(cpp) added flat_set and flat_map as a part of cpp 23 version [Lavan]
- fix(yaml) - Fixed special chars in yaml [Dxuian]
- fix(basic) - Fixed closing quotation marks not required for a PRINT statement [Somya]

New Grammars:

Expand Down Expand Up @@ -56,6 +57,7 @@ CONTRIBUTORS
[Osmocom]: https://github.com/osmocom
[Álvaro Mondéjar]: https://github.com/mondeja
[Lavan]: https://github.com/jvlavan
[Somya]: https://github.com/somya-05


## Version 11.10.0
Expand Down
8 changes: 7 additions & 1 deletion src/languages/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ export default function(hljs) {
keyword: KEYWORDS
},
contains: [
hljs.QUOTE_STRING_MODE,
{
// Match strings that start with " and end with " or a line break
scope: 'string',
begin: /"/,
end: /"|$/,
contains: [ hljs.BACKSLASH_ESCAPE ]
},
hljs.COMMENT('REM', '$', { relevance: 10 }),
hljs.COMMENT('\'', '$', { relevance: 0 }),
{
Expand Down

0 comments on commit 4e485f2

Please sign in to comment.