[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 2ec6f6d 306/405: Fixed some compilation warni
From: |
Stefan Monnier |
Subject: |
[elpa] externals/phps-mode 2ec6f6d 306/405: Fixed some compilation warnings |
Date: |
Sat, 13 Jul 2019 10:00:38 -0400 (EDT) |
branch: externals/phps-mode
commit 2ec6f6d61dc7a21f1e3e970e1ea6d59e8116bb32
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Fixed some compilation warnings
---
phps-mode-lexer.el | 7 +++----
phps-mode-test-functions.el | 1 +
phps-mode-test-lexer.el | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/phps-mode-lexer.el b/phps-mode-lexer.el
index 95e171a..c5b75e5 100644
--- a/phps-mode-lexer.el
+++ b/phps-mode-lexer.el
@@ -1317,8 +1317,7 @@
(end (match-end 0))
(_data (buffer-substring-no-properties start end))
(doc-com (looking-at-p (concat "/\\*\\*"
phps-mode-lexer-WHITESPACE))))
- (let ((string-start (search-forward "*/" nil t))
- position)
+ (let ((string-start (search-forward "*/" nil t)))
(if string-start
(if doc-com
(phps-mode-lexer-RETURN_TOKEN 'T_DOC_COMMENT start
(match-end 0))
@@ -1691,11 +1690,11 @@
(catch 'stop-iteration
(dolist (token tokens)
(let ((start (car (cdr token)))
- (end (cdr (cdr token))))
+ (_end (cdr (cdr token))))
(if (< start previous-token-end)
(progn
;; NOTE Does following line make any difference?
- ;; (semantic-lex-push-token (semantic-lex-token token
start end))
+ ;; (semantic-lex-push-token (semantic-lex-token token
start _end))
(push token old-tokens))
(throw 'stop-iteration nil)))))
(setq old-tokens (nreverse old-tokens))
diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index 2240251..8ec1b0b 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -33,6 +33,7 @@
(autoload 'phps-mode-functions-verbose "phps-mode-functions")
(autoload 'phps-mode-functions-indent-line "phps-mode-functions")
(autoload 'phps-mode-functions-get-lines-indent "phps-mode-functions")
+(autoload 'phps-mode-functions-get-imenu "phps-mode-functions")
(autoload 'phps-mode-test-hash-to-list "phps-mode-test")
(autoload 'should "ert")
diff --git a/phps-mode-test-lexer.el b/phps-mode-test-lexer.el
index 364ab75..bc34a72 100644
--- a/phps-mode-test-lexer.el
+++ b/phps-mode-test-lexer.el
@@ -78,7 +78,7 @@
(phps-mode-test-with-buffer
"<?php echo $var = array('');"
"Simple PHP via array declaration"
- (should (equal phps-mode-lexer-tokens
+ (should (equal (phps-mode-lexer-get-tokens)
'((T_OPEN_TAG 1 . 7) (T_ECHO 7 . 11) (T_VARIABLE 12 . 16)
("=" 17 . 18) (T_ARRAY 19 . 24) ("(" 24 . 25) (T_CONSTANT_ENCAPSED_STRING 25 .
27) (")" 27 . 28) (";" 28 . 29)))))
(phps-mode-test-with-buffer
- [elpa] externals/phps-mode ec3fd41 289/405: Added failing indent test for mixed concatenation and function call, (continued)
- [elpa] externals/phps-mode ec3fd41 289/405: Added failing indent test for mixed concatenation and function call, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode cc77604 284/405: Fixed bug with indentation after switch case statements, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode eeffdb2 315/405: Fixed trailing white-space, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 02b69f5 304/405: Tests for PSR-2 now passes with new algorithms, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode b251a1e 314/405: Got unit tests for wrapping region in symbols working, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 20199b0 307/405: Added byte-compiled Lisp to gitignore, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode a0b7695 316/405: Passes unit tests for integration with electric-pair, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 7c3a31a 305/405: Fixed bug in indentation with stacked assignment closures, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 68422f5 301/405: Restored indentation test for PSR-2 closure, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode f3766db 310/405: Fixed byte-compilation in lexer and integration-tests, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 2ec6f6d 306/405: Fixed some compilation warnings,
Stefan Monnier <=
- [elpa] externals/phps-mode f2fe751 302/405: More work on trying to get PSR-2 indentation working, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 8eb3dc0 311/405: Fixed byte-compilation issue in lexer, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode f77edf8 308/405: Updated compile command to ignore that files that doesn't compile, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 5d5ec06 313/405: Started on test for automatic quotations, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 7e755e1 303/405: Fixed indentation for argument assignments, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode a852669 320/405: Fix bug in syntax colouring, added debug outputs for incremental lexer, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode ad94b0b 319/405: Removed some fixed TODO itemsc, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 2427c7e 318/405: Improved README, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 6d834c1 312/405: Added support for (comment-region) and (uncomment-region), Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode b1d2820 309/405: Fixed issue with indentation of square bracket arrays in assignments, Stefan Monnier, 2019/07/13