-
Notifications
You must be signed in to change notification settings - Fork 8
/
idris2-core.el
37 lines (28 loc) · 1.31 KB
/
idris2-core.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
;;; idris2-core.el --- Core functionality -*- lexical-binding: t -*-
;; Copyright (C) 2013 Hannes Mehnert
;; Authors: Hannes Mehnert <[email protected]>
;; David Raymond Christiansen <[email protected]>
;; License:
;; Inspiration is taken from SLIME/DIME (http://common-lisp.net/project/slime/) (https://github.com/dylan-lang/dylan-mode)
;; Therefore license is GPL
;; This file 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 3, or (at your option)
;; any later version.
;; This file 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; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
;;; Code:
(require 'idris2-compat)
(defun idris2-is-ident-char-p (ch)
(or (and (<= ?a ch) (<= ch ?z))
(and (<= ?A ch) (<= ch ?Z))
(and (<= ?0 ch) (<= ch ?9))
(= ch ?_)))
(provide 'idris2-core)
;;; idris2-core.el ends here