Bug 389591 - awk syntax: incorrect parse of double quotes in /.../ regexp
Summary: awk syntax: incorrect parse of double quotes in /.../ regexp
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: 5.42.0
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL: https://phabricator.kde.org/D12854
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-29 09:32 UTC by Jannick
Modified: 2018-07-22 21:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
awk script producing incorrect parsing (92 bytes, text/plain)
2018-01-29 09:32 UTC, Jannick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jannick 2018-01-29 09:32:44 UTC
Created attachment 110202 [details]
awk script producing incorrect parsing

Awk: A regular expression of the form /.../ containing a (potentially unpaired) double quote is not correctly parsed.

Example with valid awk code (cf. attachment):

~~~awk
{
	n = match($0, /[^"]+/, a)
}

/[^"]+/ {
	s = "I am another string"
}
~~~