[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CC Mode 5.21 (C++); I get "Scan error: Unbalanced paren" when arglist-cl
From: |
Raghavender Gyambavantha |
Subject: |
CC Mode 5.21 (C++); I get "Scan error: Unbalanced paren" when arglist-close = c-lineup-arglist-close-under-paren |
Date: |
Wed, 10 Jan 2001 16:04:58 -0700 (MST) |
Dear Barry and Martin,
I modified the "gnu" style slightly to create the configuration below and have
the arglist-close set to "c-lineup-arglist-close-under-paren". This setting
along with the auto-newline being ON gives me "Scan error: Unbalanced
paranthesis"
when I type the "{" (function -open) as in the example below
void fnName (int i,
int j
)
{
Note that the first argument "int i" should be on the same line as the open
paren.
It doesn't give me that error, if the first argument is on a different line or
the function is defined inside a class.
Hope to get some info from you.
Thanks,
-Raghu G
(R.Gyambavantha@ericsson.com)
Emacs : GNU Emacs 20.3.1 (sparc-sun-solaris2.5.1, X toolkit)
of Mon Apr 19 1999 on ryan
Package: CC Mode 5.21 (C++)
Buffer Style: komodo
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
c-special-indent-hook is set to '(c-gnu-impose-minimum).
Perhaps this is your problem?
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
c-emacs-features: (1-bit)
current state:
==============
(setq
c-basic-offset 2
c-offsets-alist '((string . -1000)
(c . c-lineup-C-comments)
(defun-open . 0)
(defun-close . 0)
(defun-block-intro . +)
(class-open . 0)
(class-close . 0)
(inline-open . +)
(inline-close . 0)
(func-decl-cont . 0)
(knr-argdecl-intro . 5)
(knr-argdecl . 0)
(topmost-intro . 0)
(topmost-intro-cont . 0)
(member-init-intro . ++)
(member-init-cont . 0)
(inher-intro . +)
(inher-cont . c-lineup-multi-inher)
(block-open . 0)
(block-close . 0)
(brace-list-open . 0)
(brace-list-close . 0)
(brace-list-intro . +)
(brace-list-entry . 0)
(statement . 0)
(statement-cont . +)
(statement-block-intro . +)
(statement-case-intro . +)
(statement-case-open . +)
(substatement . +)
(substatement-open . 0)
(case-label . +)
(access-label . -)
(label . 0)
(do-while-closure . 0)
(else-clause . 0)
(comment-intro . c-lineup-comment)
(arglist-intro . c-lineup-arglist-intro-after-paren)
(arglist-cont . 0)
(arglist-cont-nonempty . c-lineup-arglist)
(arglist-close . c-lineup-arglist-close-under-paren)
(stream-op . c-lineup-streamop)
(inclass . +)
(cpp-macro . -1000)
(cpp-macro-cont . c-lineup-dont-change)
(friend . 0)
(objc-method-intro . -1000)
(objc-method-args-cont . c-lineup-ObjC-method-args)
(objc-method-call-cont . c-lineup-ObjC-method-call)
(extern-lang-open . 0)
(extern-lang-close . 0)
(inextern-lang . +)
(namespace-open . 0)
(namespace-close . 0)
(innamespace . +)
(template-args-cont . +)
)
c-cleanup-list '(scope-operator empty-defun-braces defun-close-semi)
c-comment-only-line-offset '(0 . 0)
c-backslash-column 48
c-delete-function 'delete-char
c-electric-pound-behavior nil
c-hanging-braces-alist '((substatement-open before after) (block-open after)
(brace-list-open))
c-hanging-colons-alist nil
c-hanging-comment-starter-p t
c-hanging-comment-ender-p t
c-indent-comments-syntactically-p nil
c-tab-always-indent t
c-comment-continuation-stars ""
c-label-minimum-indentation 1
defun-prompt-regexp nil
tab-width 8
)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- CC Mode 5.21 (C++); I get "Scan error: Unbalanced paren" when arglist-close = c-lineup-arglist-close-under-paren,
Raghavender Gyambavantha <=