[Github-comments] [geany/geany] Matching block highlighting in Ruby like RubyMine (#1505)

Matthew Brush notifications at xxxxx
Thu Jun 1 23:06:02 UTC 2017


Specifically http://www.scintilla.org/ScintillaDoc.html#SCI_GETFOLDLEVEL

Something like (pseudo code):

```
curLine = GetCurrentLine();
curFoldLevel = GetFoldLevel(curLine++);
while (!endOfFile) {
  thisFoldLevel = GetFoldLevel(curLine++);
  if (thisFoldLevel == curFoldLevel) {
    // this is the matching closing line
  }
}
```

It wouldn't work if ruby allows the block ending on the same line as the block start though (I don't know ruby).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1505#issuecomment-305644777
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170601/f28fee19/attachment.html>


More information about the Github-comments mailing list