summaryrefslogtreecommitdiff
path: root/test/literate/tokens.el
blob: 03298696f28cd9f4ddeae82eae84102ce2a8469c (plain)
1
2
3
4
5
6
7
8
;; -*- lexical-binding: t; -*-

(defun token= (type &optional value)
  "Check that the next token conforms to TYPE and VALUE.
This checks it back and forth and moves the point after the
token."
  (and (ess-jump-token type value)
       (ess-token-before= type value)))