;;; phps-mode-test-syntax-table.el --- Tests for syntax-table -*- lexical-binding: t -*- ;; Copyright (C) 2018-2021 Free Software Foundation, Inc. ;; This file is not part of GNU Emacs. ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation; either version 2, or (at ;; your option) any later version. ;; This program is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . ;;; Commentary: ;; Run from terminal make functions-test ;;; Code: (require 'ert) (require 'phps-mode) (require 'phps-mode-test) ;; TODO Should test `backward-sexp', `forward-sexp', `backward-word', `forward-word', `backward-list', `forward-list' as well (defun phps-mode-test-syntax-table--quote-region () "Test double quotes, single quotes, curly bracket, square bracket, round bracket, back-quotes on regions." (phps-mode-test--with-buffer "