Fixed Issue #652, #1091
Merge pull request #1098 from diegosarmentero/master

 Fixed Issue #652, #1091
Changed brace matching algorythm to avoid matching one extra closing
parenthesis
Fixes #1040
Merge pull request #1099 from perrito666/master

Fixes #1040
Fixed issue #994 change the logic use Universal end-of-line or platform specific, Removed test for old logic
Merge branch 'master' of git://github.com/ninja-ide/ninja-ide
merge with master