elm_code: Add 2 spaces auto indent after keywords
authorYeongJong Lee <cleanlyj@naver.com>
Fri, 6 Jan 2017 09:38:02 +0000 (09:38 +0000)
committerAndy Williams <andy@andywilliams.me>
Fri, 6 Jan 2017 10:16:41 +0000 (10:16 +0000)
commit13730d7a75fddc0c086c6da2e86e3509c6935156
tree92ebc36a2858e21bec50d51585a3153d809b5a17
parentbb6c324e7302980b980c8b2da0b1e9b7c288f37a
elm_code: Add 2 spaces auto indent after keywords

Summary:
When insert newline, check the previous line has keyword.
If so, insert 2 spaces indent more.

Test Plan:
1. run elementry_test - Code Editor or Edi.
2. Type some code with keywords.
3. Type <Return>.
4. Check that the indentation of newline is correct.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4543
src/lib/elementary/elm_code_indent.c
src/tests/elementary/elm_code_test_indent.c