Skip to content

In some sources '%' and '^' symbols are broken #3

Description

@scriptin

Sometimes I can't input % an ^ characters, they show up as incorrect input when I type them in. I noticed that as I was typing some Clojure source and then some Erlang source.

This is a piece of source from Ring (Clojure), in which I have this bug (in the 1st line, on ^ symbol):

(defn- ^SimpleDateFormat formatter [format]
  (doto (SimpleDateFormat. ^String (http-date-formats format) Locale/US)
    (.setTimeZone (TimeZone/getTimeZone "GMT"))))

(defn- attempt-parse [date format]
  (try
    (.parse (formatter format) date)
    (catch ParseException _ nil)
    ;; Also catch RuntimeExceptions, needed for Clojure 1.3.0
    ;; See: https://groups.google.com/forum/#!topic/clojure/I5l1YHVMgkI
    (catch RuntimeException _ nil)))

(defn- trim-quotes [s]
  (str/replace s #"^'|'$" ""))

Another source pieces containing these characters work fine.

I use a Russian windows keyboard, but its' English layout seems to be the same as on normal US keyboards. Currently I'm using Google Chrome 31.0.1650.63 m on Windows 7.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions