Skip to content

Commit

Permalink
erb fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fxbois committed Feb 7, 2024
1 parent 8284707 commit 208f32b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions issues/1296.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div>
<%= render_to_string partial: 'some_partial',
locals: {
icon: nil,
errors: [],
title: 'Title'
} %>

<!-- The same for render: -->
<%= render partial: 'some_partial',
locals: {
icon: nil,
errors: [],
title: 'Title'
} %>
</div>
8 changes: 4 additions & 4 deletions web-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

;; Copyright 2011-2024 François-Xavier Bois

;; Version: 17.3.17
;; Version: 17.3.18
;; Author: François-Xavier Bois
;; Maintainer: François-Xavier Bois <[email protected]>
;; Package-Requires: ((emacs "23.1"))
Expand All @@ -23,7 +23,7 @@

;;---- CONSTS ------------------------------------------------------------------

(defconst web-mode-version "17.3.17"
(defconst web-mode-version "17.3.18"
"Web Mode version.")

;;---- GROUPS ------------------------------------------------------------------
Expand Down Expand Up @@ -1742,7 +1742,7 @@ shouldn't be moved back.)")
"localize" "logger" "number_field"
"number_field_tag" "number_to_human" "params" "path_to_audio"
"path_to_video" "phone_field" "phone_field_tag" "provide"
"range_field" "range_field_tag" "raw" "render" "request"
"range_field" "range_field_tag" "raw" "render" "render_to_string" "request"
"request_forgery_protection_token" "response" "safe_concat"
"safe_join" "search_field" "search_field_tag"
"session" "t" "telephone_field" "telephone_field_tag"
Expand Down Expand Up @@ -9922,7 +9922,7 @@ Also return non-nil if it is the command `self-insert-command' is remapped to."
((string-match-p ",$" prev-line)
(save-excursion
(goto-char limit)
(looking-at "<%=? [a-z]+ ")
(looking-at "<%=? [a-z_]+ ")
(setq offset (+ initial-column (length (match-string-no-properties 0))))
) ;save-excursion
)
Expand Down

0 comments on commit 208f32b

Please sign in to comment.