<feed xmlns='http://www.w3.org/2005/Atom'>
<title>scintilla-mirror/lexers/LexCPP.cxx, branch rel-4-1-6</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>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=f45d0a5ab22f96f7ab10fbdedcf5ca144b950b0e'/>
<id>f45d0a5ab22f96f7ab10fbdedcf5ca144b950b0e</id>
<content type='text'>
as that is more correct, added comments and helper methods, removed lines that
had no effect.
Behaviour unaltered.
</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.
</pre>
</div>
</content>
</entry>
<entry>
<title>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=5344ef2aee7eaca738b0bddab8d9025bf49f1137'/>
<id>5344ef2aee7eaca738b0bddab8d9025bf49f1137</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>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=1d055f5b839ddce03636f65c901fd59e304f5a42'/>
<id>1d055f5b839ddce03636f65c901fd59e304f5a42</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>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=f95195eec25ba7d08219f9d7faef52dc5d65d224'/>
<id>f95195eec25ba7d08219f9d7faef52dc5d65d224</id>
<content type='text'>
* LexCPP.cxx (LexerCPP::EvaluateTokens): Use std::to_string to convert
  int to std::string.
</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.
</pre>
</div>
</content>
</entry>
<entry>
<title>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=3f3eb0ea971edddb3983bb6498decbb171b17e0f'/>
<id>3f3eb0ea971edddb3983bb6498decbb171b17e0f</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
</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
</pre>
</div>
</content>
</entry>
<entry>
<title>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=02b035fec78afcb1bd3d76cdcde876fdf322c655'/>
<id>02b035fec78afcb1bd3d76cdcde876fdf322c655</id>
<content type='text'>
the logical line.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the logical line.
</pre>
</div>
</content>
</entry>
<entry>
<title>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=bf4cbf50a43ed6e803073ff64a923f5d72fbee9c'/>
<id>bf4cbf50a43ed6e803073ff64a923f5d72fbee9c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>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=7263fd79dc1b9e150d7a9e22c52c34d7b5a123dd'/>
<id>7263fd79dc1b9e150d7a9e22c52c34d7b5a123dd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>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=13b2cba2ce2deb287d97a2d39e51d04934f55e91'/>
<id>13b2cba2ce2deb287d97a2d39e51d04934f55e91</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>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=41d0d56e0b8b6d7b4e1fd5a6229bb846c34775ab'/>
<id>41d0d56e0b8b6d7b4e1fd5a6229bb846c34775ab</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
