Hacker News new | ask | show | jobs
by xigoi 1091 days ago
Step 1: Find an indent increase.

Step 2: Find the first place where the indent becomes lower.

It's not hard, human vision is naturally designed for this. What is hard is finding a matching bracket when the code is not indented properly.