-;;; ada-wisi-opentoken.el --- An indentation function for ada-wisi that indents OpenToken
+;;; ada-wisi-opentoken.el --- An indentation function for ada-wisi that indents OpenToken -*- lexical-binding:t -*-
;; grammar statements nicely.
-;; Copyright (C) 2013, 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2013-2015 Free Software Foundation, Inc.
;; This file is part of GNU Emacs.
;; included in package specs that exist solely to define OpenToken
;; grammar fragments.
(save-excursion
- (let ((token-text (nth 1 (wisi-backward-token))))
+ (let ((token-text (wisi-token-text (wisi-backward-token))))
(cond
((equal token-text "<=")
(back-to-indentation)
(+ (current-column) ada-indent-broken))
((member token-text '("+" "&"))
- (while (not (equal "<=" (nth 1 (wisi-backward-token)))))
+ (while (not (equal "<=" (wisi-token-text (wisi-backward-token)))))
(back-to-indentation)
(+ (current-column) ada-indent-broken))
))))