Skip to content

Commit

Permalink
Look for pro/fun only for indent in MAIN-level routine.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtsmith committed Jan 26, 2010
1 parent 1641fe1 commit 20dcf5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions idlwave.el
Expand Up @@ -1286,7 +1286,9 @@ only by whitespace.")
"Regular expression to find the beginning of a block. The case does
not matter. The search skips matches in comments.")

(defconst idlwave-begin-unit-reg "^\\s-*\\(pro\\|function\\)\\>\\|\\`"
(defconst idlwave-profun-reg "^\\s-*\\(pro\\|function\\)\\>")

(defconst idlwave-begin-unit-reg (concat idlwave-profun-reg "\\|\\`")
"Regular expression to find the beginning of a unit. The case does
not matter.")

Expand Down Expand Up @@ -2960,7 +2962,7 @@ Inserts spaces before markers at point."
(setq beg-prev-pos (point)))
0)
;; Main block
((idlwave-look-at idlwave-begin-unit-reg t)
((idlwave-look-at idlwave-profun-reg t)
(+ (idlwave-current-statement-indent)
idlwave-main-block-indent))
;; Begin block
Expand Down

0 comments on commit 20dcf5b

Please sign in to comment.