Skip to content

Commit c837052

Browse files
committed
Merge pull request #50 from kaaresl/develop
drupal-detect-drupal-version: Allow tabs in .info
2 parents 507da75 + f205ee4 commit c837052

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drupal-mode.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -662,20 +662,20 @@ the location of DRUPAL_ROOT."
662662
(insert-file-contents-literally module)
663663
(goto-char (point-min))
664664
(when (and (not drupal-version)
665-
(re-search-forward "^core *=" nil t))
666-
(re-search-forward " *\"?\\([^\"]+\\)\"?" (point-at-eol) t)
665+
(re-search-forward "^core[ \t]*=" nil t))
666+
(re-search-forward "[ \t]\"?\\([^\"]+\\)\"?" (point-at-eol) t)
667667
(setq version (match-string-no-properties 1)))
668668
(goto-char (point-min))
669-
(when (re-search-forward "^name *=" nil t)
670-
(re-search-forward " *\"?\\([^\"]+\\)\"?" (point-at-eol) t)
669+
(when (re-search-forward "^name[ \t]=" nil t)
670+
(re-search-forward "[ \t]*\"?\\([^\"]+\\)\"?" (point-at-eol) t)
671671
(setq module-name (match-string-no-properties 1)))
672672
(goto-char (point-min))
673-
(when (re-search-forward "^version *=" nil t)
674-
(re-search-forward " *\"?\\([^\"]+\\)\"?" (point-at-eol) t)
673+
(when (re-search-forward "^version[ \t]*=" nil t)
674+
(re-search-forward "[ \t]*\"?\\([^\"]+\\)\"?" (point-at-eol) t)
675675
(setq module-version (match-string-no-properties 1)))
676676
(goto-char (point-min))
677-
(when (re-search-forward "^project *=" nil t)
678-
(re-search-forward " *\"?\\([^\"]+\\)\"?" (point-at-eol) t)
677+
(when (re-search-forward "^project[ \t]*=" nil t)
678+
(re-search-forward "[ \t]*\"?\\([^\"]+\\)\"?" (point-at-eol) t)
679679
(setq project (match-string-no-properties 1)))
680680
(when (and (string= project "drupal")
681681
(string= module-version "VERSION"))

0 commit comments

Comments
 (0)