<feed xmlns='http://www.w3.org/2005/Atom'>
<title>scintilla-mirror/lexers/LexCPP.cxx, branch rel-3-10-5</title>
<subtitle>Git mirror of the Scintilla editor component. Referenced by the SciTECO repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/'/>
<entry>
<title>Backport: Simplified preprocessor conditional styling code, renamed 'active' to 'inactive'</title>
<updated>2019-03-23T10:52:04+00:00</updated>
<author>
<name>Neil</name>
<email>nyamatongwe@gmail.com</email>
</author>
<published>2019-03-23T10:52:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=22ae048c4396901c9c0381a258ddbbd065d1aec4'/>
<id>22ae048c4396901c9c0381a258ddbbd065d1aec4</id>
<content type='text'>
as that is more correct, added comments and helper methods, removed lines that
had no effect.
Behaviour unaltered.

Backport of changeset 7343:47c846cb9d17.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
as that is more correct, added comments and helper methods, removed lines that
had no effect.
Behaviour unaltered.

Backport of changeset 7343:47c846cb9d17.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Fix warnings from MSVC Code Analysis.</title>
<updated>2019-03-22T21:50:32+00:00</updated>
<author>
<name>Neil</name>
<email>nyamatongwe@gmail.com</email>
</author>
<published>2019-03-22T21:50:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=de07b9abd6711d657c170de23871ddb5503a1011'/>
<id>de07b9abd6711d657c170de23871ddb5503a1011</id>
<content type='text'>
Backport of changeset 7328:521b1e23bfe2, but without C++17 std::size and
`SymbolValue() = default` instead of `SymbolValue() noexcept = default`, since
the latter causes a compile error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backport of changeset 7328:521b1e23bfe2, but without C++17 std::size and
`SymbolValue() = default` instead of `SymbolValue() noexcept = default`, since
the latter causes a compile error.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Treat "#if(" as preprocessor directive "#if" followed by operator "(".</title>
<updated>2019-01-14T23:37:34+00:00</updated>
<author>
<name>Neil</name>
<email>nyamatongwe@gmail.com</email>
</author>
<published>2019-01-14T23:37:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=8a5808c87b93c49e1fca9b730b5e8558d4a55228'/>
<id>8a5808c87b93c49e1fca9b730b5e8558d4a55228</id>
<content type='text'>
Backport of changeset 7233:e08fe2381ca3.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backport of changeset 7233:e08fe2381ca3.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Bug [#2069]. LexerCPP: modernize int to std::string conversion</title>
<updated>2018-12-11T21:38:19+00:00</updated>
<author>
<name>Jannick</name>
<email>unknown</email>
</author>
<published>2018-12-11T21:38:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=197bc747b2561b3bd342d5426a2493246d488db1'/>
<id>197bc747b2561b3bd342d5426a2493246d488db1</id>
<content type='text'>
* LexCPP.cxx (LexerCPP::EvaluateTokens): Use std::to_string to convert
  int to std::string.

Backport of changeset 7185:bff457790150.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* LexCPP.cxx (LexerCPP::EvaluateTokens): Use std::to_string to convert
  int to std::string.

Backport of changeset 7185:bff457790150.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Bug [#2069]. LexCPP: fix bug in arithmetic calculation by adding precedence levels</title>
<updated>2018-12-11T21:38:19+00:00</updated>
<author>
<name>Jannick</name>
<email>unknown</email>
</author>
<published>2018-12-11T21:38:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=cb6e496d5fef85a7305db64e0874fdb0b78fd04b'/>
<id>cb6e496d5fef85a7305db64e0874fdb0b78fd04b</id>
<content type='text'>
The precedence for the implemented arithmetic operators +,-,%,*,/
is added, such that the calculations produce the correct results
honoring the standard precedence levels.

* Replace characterset setArithmeticOp by setAddOp and setMultOp.
* Replace precedence precArithmetic by precMult and precAdd
* (EvaluateTokens): Apply new precedences.

This fixes the bug in the arithmetic calculation:

// lines with 'false' should not be highlighted,
// those with 'true' should be.

#if 1 + 2 * 3 == 9
false
#endif

#if (1 + 2) * 3 == 9
true
#endif

#if 1 + 2 * 3 == 7
true
#endif

#if 1 == 5 % 2
true
#endif

#if 6 - 7 == -1
true
#endif

#if 25 / 5 * 5 == 25
true
#endif

#if 1 + 2 * 3 % 2 == 1
true
#endif

#if 1 + 2 * 3 % 2 == 2 + 1
false
#endif

Backport of changeset 7184:48861f53f719.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The precedence for the implemented arithmetic operators +,-,%,*,/
is added, such that the calculations produce the correct results
honoring the standard precedence levels.

* Replace characterset setArithmeticOp by setAddOp and setMultOp.
* Replace precedence precArithmetic by precMult and precAdd
* (EvaluateTokens): Apply new precedences.

This fixes the bug in the arithmetic calculation:

// lines with 'false' should not be highlighted,
// those with 'true' should be.

#if 1 + 2 * 3 == 9
false
#endif

#if (1 + 2) * 3 == 9
true
#endif

#if 1 + 2 * 3 == 7
true
#endif

#if 1 == 5 % 2
true
#endif

#if 6 - 7 == -1
true
#endif

#if 25 / 5 * 5 == 25
true
#endif

#if 1 + 2 * 3 % 2 == 1
true
#endif

#if 1 + 2 * 3 % 2 == 2 + 1
false
#endif

Backport of changeset 7184:48861f53f719.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Bug [#2062]. Interpret continued preprocessor lines correctly by reading all of</title>
<updated>2018-12-03T21:29:58+00:00</updated>
<author>
<name>Neil</name>
<email>nyamatongwe@gmail.com</email>
</author>
<published>2018-12-03T21:29:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=ffc99771b95a0b01371779d9d30f9d0400054691'/>
<id>ffc99771b95a0b01371779d9d30f9d0400054691</id>
<content type='text'>
the logical line.

Backport of changeset 7182:a40b6aac5b1f.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the logical line.

Backport of changeset 7182:a40b6aac5b1f.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Bug [#2045]. LexCPP: Fix 'elif' token length</title>
<updated>2018-09-23T23:24:10+00:00</updated>
<author>
<name>huki</name>
<email>gk7huki@gmail.com</email>
</author>
<published>2018-09-23T23:24:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=e95830ea8681727d86665d06dd1689019a01a335'/>
<id>e95830ea8681727d86665d06dd1689019a01a335</id>
<content type='text'>
Backport of changeset 7094:fa4b41e8a452.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backport of changeset 7094:fa4b41e8a452.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Guard against shifting by negative amount as that is undefined behaviour.</title>
<updated>2018-09-18T03:00:08+00:00</updated>
<author>
<name>Neil Hodgson</name>
<email>nyamatongwe@gmail.com</email>
</author>
<published>2018-09-18T03:00:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=9808da6fa62255d1ad77d988ef3617a2381e3299'/>
<id>9808da6fa62255d1ad77d988ef3617a2381e3299</id>
<content type='text'>
Backport of changeset 7090:041e498f21d3.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backport of changeset 7090:041e498f21d3.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Use const and noexcept, initialize, avoid casts and improve variable name.</title>
<updated>2018-06-04T04:45:28+00:00</updated>
<author>
<name>Neil</name>
<email>nyamatongwe@gmail.com</email>
</author>
<published>2018-06-04T04:45:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=c1cbc18b7c39346de6ea942324e97c36990d8528'/>
<id>c1cbc18b7c39346de6ea942324e97c36990d8528</id>
<content type='text'>
Backport of changeset 7020:9e7cc77d3970.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backport of changeset 7020:9e7cc77d3970.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport: Use lambda in preference to function object.</title>
<updated>2018-06-04T04:43:24+00:00</updated>
<author>
<name>Neil</name>
<email>nyamatongwe@gmail.com</email>
</author>
<published>2018-06-04T04:43:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fmsbw.de/scintilla-mirror/commit/?id=6d504647c4974d8cf1968126af64e3f1a1b26ba0'/>
<id>6d504647c4974d8cf1968126af64e3f1a1b26ba0</id>
<content type='text'>
Backport of changeset 7019:6023ccf7f06c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backport of changeset 7019:6023ccf7f06c.
</pre>
</div>
</content>
</entry>
</feed>
