Bug 389591

Summary: awk syntax: incorrect parse of double quotes in /.../ regexp
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Jannick <thirdedition>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: jonathan.poelen
Priority: NOR    
Version First Reported In: 5.42.0   
Target Milestone: ---   
Platform: Other   
OS: All   
URL: https://phabricator.kde.org/D12854
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: awk script producing incorrect parsing

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"
}
~~~