(lookup-file-attribute file-attribute-alist 'KEYWORD-STYLE)))
(if (pair? keyword-entry)
(let ((value (cdr keyword-entry)))
- (cond ((and (symbol value)
+ (cond ((and (symbol? value)
+ (or (string-ci=? (symbol-name value) "none")
+ (string-ci=? (symbol-name value) "false")))
+ (port/set-property! port '*PARSER-KEYWORD-STYLE* #f))
+ ((and (symbol? value)
(string-ci=? (symbol-name value) "prefix"))
(port/set-property! port '*PARSER-KEYWORD-STYLE* 'PREFIX))
- ((and (symbol value)
+ ((and (symbol? value)
(string-ci=? (symbol-name value) "suffix"))
(port/set-property! port '*PARSER-KEYWORD-STYLE* 'SUFFIX))
(else
(lookup-file-attribute file-attribute-alist 'MODE)))
(if (pair? mode-entry)
(let ((value (cdr mode-entry)))
- (if (or (not (symbol value))
+ (if (or (not (symbol? value))
(not (string-ci=? (symbol-name value) "scheme")))
(warn "Unexpected file mode:" (if (symbol? value)
(symbol-name value)