Ticket #308 (closed enhancement: fixed)

Opened 10 months ago

Last modified 6 months ago

Investigate automatic reindention for C-like languages

Reported by: rob Owned by: rob
Priority: major Milestone: 0.7.3
Component: application Keywords:
Cc:

Description

TextMate? apparently uses regexes to indent and unindent: http://macromates.com/textmate/manual/appendix#indentation_rules

Attachments

Change History

Changed 9 months ago by rob

  • summary changed from Investigate textmate regex for C style indention/unindention to Investigate textmate/jedit regex for C style indention/unindention

Also can look at jEdit for similar stuff: http://www.jedit.org/users-guide/mode-tag-props.html

Changed 6 months ago by rob

  • milestone changed from 1.0 to 0.7.3

Here's the description of an algorithm used by ctags to parse braces in C code: http://ctags.sourceforge.net/ctags.html#OPERATIONAL%20DETAILS

Changed 6 months ago by rob

  • status changed from new to assigned
  • milestone changed from 0.7.3 to 0.7.4

Changed 6 months ago by rob

  • summary changed from Investigate textmate/jedit regex for C style indention/unindention to Investigate automatic reindention for C-like languages

VIM also has a nicely commented function get_c_indent in misc1.c that might be the easiest way to translate something for python if I end up having to do it myself.

Changed 6 months ago by rob

  • milestone changed from 0.7.4 to 0.7.3

Related to #8, I've had a bit of inspiration and realized that my long-neglected experiments using Scintilla's folding can be used as a basis for the autoindenting.

Changed 6 months ago by rob

  • status changed from assigned to closed
  • resolution set to fixed

The initial version of the autoindenter is fixes as of r1170. There is still work to be done, but it's a good start.

Add/Change #308 (Investigate automatic reindention for C-like languages)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.