[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 87682] indent won't work correct for perl
From:       Anders Lund <anders () alweb ! dk>
Date:       2004-11-01 11:07:37
Message-ID: 20041101110737.8220.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
        
http://bugs.kde.org/show_bug.cgi?id=87682        




------- Additional Comments From anders alweb dk  2004-11-01 12:07 -------
CVS commit by alund: 

FEATURE:
Add a variable based autoindenter.
This indenter matches a line and the first line with content above against
regular expressions to decide if a line should be [un]indented. When a newline
is entered, both the old and the new line is considered, and it can be triggered
to indent the current by typing one of a list of characters.
The regular expression patterns and trigger character list are read from document
variables, which can be embedded directly in the document or read from a filetype
configuration.

The following variables are used:
- var-indent-indent-after: a regular expression pattern, if the first line with \
                content above the current, indentation is added
- var-indent-indent: a regular expression pattern, if the current line matches indent \
                is added. this is not tested if the above matched.
- var-indent-unindent: a regular expression pattern, if it matches the current line, \
                indent is removed.
- var-indent-triggerchars: a string of characters, when any is typed, the current \
line is reindented.

This should be usable for adding basic autoindentatin to bash, lua, basic, perl...
Note that kates document variables currently can't contain a semicolon, (would be a \
common trigger char), I'm going to fix that.

CCBUG: 87682


  M +161 -1    kateautoindent.cpp   1.36
  M +50 -10    kateautoindent.h   1.19
  M +2 -1      kateconfig.h   1.46


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic