Skip to content

Commit 044e21c

Browse files
committed
package-lint fixes
1 parent 02d0e34 commit 044e21c

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

lsp-dart-dap.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
;;
33
;; Version: 1.5
44
;; Keywords: languages, extensions
5+
;; Package-Requires: ((emacs "25.2") (lsp-mode "6.0") (dash "2.14.1"))
56
;; URL: https://github.com/emacs-lsp/lsp-dart.el
67
;;
78
;; This program is free software; you can redistribute it and/or modify

lsp-dart-flutter-colors.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
;;
33
;; Version: 1.4
44
;; Keywords: languages, extensions
5+
;; Package-Requires: ((emacs "25.2"))
56
;; URL: https://github.com/emacs-lsp/lsp-dart.el
67
;;
78
;; This program is free software; you can redistribute it and/or modify

lsp-dart-fringe.el

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
;;
33
;; Version: 1.4
44
;; Keywords: languages, extensions
5+
;; Package-Requires: ((emacs "25.2") (lsp-mode "6.0") (dash "2.14.1"))
56
;; URL: https://github.com/emacs-lsp/lsp-dart.el
67
;;
78
;; This program is free software; you can redistribute it and/or modify
@@ -28,10 +29,10 @@
2829
(require 'lsp-mode)
2930
(require 'lsp-dart-flutter-colors)
3031

31-
(defconst color-name-pattern "Colors\\.\\([][:word:]\\[\\.]+\\)")
32-
(defconst color-hex-pattern "Color(0x\\(\\w\\{8\\}\\))")
33-
(defconst color-argb-pattern "Color.fromARGB(\\(\\w+\\), \\(\\w+\\), \\(\\w+\\), \\(\\w+\\))")
34-
(defconst color-rgbo-pattern "Color.fromRGBO(\\(\\w+\\), \\(\\w+\\), \\(\\w+\\), \\([0-9.]+\\))")
32+
(defconst lsp-dart-fringe-color-name-pattern "Colors\\.\\([][:word:]\\[\\.]+\\)")
33+
(defconst lsp-dart-fringe-color-hex-pattern "Color(0x\\(\\w\\{8\\}\\))")
34+
(defconst lsp-dart-fringe-color-argb-pattern "Color.fromARGB(\\(\\w+\\), \\(\\w+\\), \\(\\w+\\), \\(\\w+\\))")
35+
(defconst lsp-dart-fringe-color-rgbo-pattern "Color.fromRGBO(\\(\\w+\\), \\(\\w+\\), \\(\\w+\\), \\([0-9.]+\\))")
3536

3637
(defcustom lsp-dart-fringe-colors t
3738
"Enable the color overlays on fringe."
@@ -73,23 +74,23 @@
7374
(remove-overlays (point-min) (point-max) 'lsp-dart-fringe-colors t)
7475
(save-excursion
7576
(goto-char (point-min))
76-
(while (re-search-forward color-name-pattern nil t)
77+
(while (re-search-forward lsp-dart-fringe-color-name-pattern nil t)
7778
(let ((color (concat "#" (-> (match-string 1)
7879
(assoc lsp-dart-flutter-colors)
7980
cdr))))
8081
(lsp-dart-fringe--add-color color buffer (point-at-bol))))
8182
(goto-char (point-min))
82-
(while (re-search-forward color-hex-pattern nil t)
83+
(while (re-search-forward lsp-dart-fringe-color-hex-pattern nil t)
8384
(let ((color (concat "#" (substring (match-string 1) 2))))
8485
(lsp-dart-fringe--add-color color buffer (point-at-bol))))
8586
(goto-char (point-min))
86-
(while (re-search-forward color-argb-pattern nil t)
87+
(while (re-search-forward lsp-dart-fringe-color-argb-pattern nil t)
8788
(let ((color (lsp-dart-fringe--rgb-to-hex (match-string 2)
8889
(match-string 3)
8990
(match-string 4))))
9091
(lsp-dart-fringe--add-color color buffer (point-at-bol))))
9192
(goto-char (point-min))
92-
(while (re-search-forward color-rgbo-pattern nil t)
93+
(while (re-search-forward lsp-dart-fringe-color-rgbo-pattern nil t)
9394
(let ((color (lsp-dart-fringe--rgb-to-hex (match-string 1)
9495
(match-string 2)
9596
(match-string 3))))

lsp-dart-widget-guide.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
;;
33
;; Version: 1.6
44
;; Keywords: languages, extensions
5+
;; Package-Requires: ((emacs "25.2") (lsp-mode "6.0") (ht "2.0") (dash "2.14.1"))
56
;; URL: https://github.com/emacs-lsp/lsp-dart.el
67
;;
78
;; This program is free software; you can redistribute it and/or modify

0 commit comments

Comments
 (0)