[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/web-mode 84bdab7255 2/3: new year
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/web-mode 84bdab7255 2/3: new year |
Date: |
Sat, 23 Dec 2023 16:00:28 -0500 (EST) |
branch: elpa/web-mode
commit 84bdab7255bf5fdcb55450cf367b3229dce12a90
Author: fxbois <fxbois@gmail.com>
Commit: fxbois <fxbois@gmail.com>
new year
---
issues/1286.blade.php | 17 +++++++++++++++++
web-mode.el | 16 +++++++++-------
2 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/issues/1286.blade.php b/issues/1286.blade.php
new file mode 100644
index 0000000000..1ab9972b39
--- /dev/null
+++ b/issues/1286.blade.php
@@ -0,0 +1,17 @@
+@php
+$isActive = false;
+$hasError = true;
+@endphp
+
+<div>
+ {{ $attributes->whereDoesntStartWith('wire:model') }}
+</div>
+
+<span @class([
+ 'p-4',
+ 'font-bold' => $isActive,
+ 'text-gray-500' => ! $isActive,
+ 'bg-red' => $hasError,
+])></span>
+
+<span class="p-4 text-gray-500 bg-red"></span>
diff --git a/web-mode.el b/web-mode.el
index 2626f641e8..e95537284a 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -1,8 +1,8 @@
;;; web-mode.el --- major mode for editing web templates -*- coding: utf-8;
lexical-binding: t; -*-
-;; Copyright 2011-2023 François-Xavier Bois
+;; Copyright 2011-2024 François-Xavier Bois
-;; Version: 17.3.15
+;; Version: 17.3.16
;; Author: François-Xavier Bois
;; Maintainer: François-Xavier Bois <fxbois@gmail.com>
;; Package-Requires: ((emacs "23.1"))
@@ -23,7 +23,7 @@
;;---- CONSTS
------------------------------------------------------------------
-(defconst web-mode-version "17.3.15"
+(defconst web-mode-version "17.3.16"
"Web Mode version.")
;;---- GROUPS
------------------------------------------------------------------
@@ -3431,13 +3431,15 @@ Also return non-nil if it is the command
`self-insert-command' is remapped to."
(setq closing-string '("<\\?". "\\?>")))
(cond
((looking-at-p "<?php")
- (setq delim-open "<?php"))
+ (setq delim-open "<?php")
+ (setq delim-close "?>"))
((eq (char-after) ?\=)
- (setq delim-open "<?="))
+ (setq delim-open "<?=")
+ (setq delim-close "?>"))
(t
- (setq delim-open "<?"))
+ (setq delim-open "<?")
+ (setq delim-close "?>"))
) ;cond
- (setq delim-close "?>")
) ;php
((string= web-mode-engine "erb")