From 29acf2ab0961ba7fd36b66f00d05678f528d10d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 12 Dec 2017 09:40:35 +0100 Subject: [PATCH] Update Unicode Syntax.md --- lib/elixir/pages/Unicode Syntax.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/elixir/pages/Unicode Syntax.md b/lib/elixir/pages/Unicode Syntax.md index c1b321c614..e23aec4772 100644 --- a/lib/elixir/pages/Unicode Syntax.md +++ b/lib/elixir/pages/Unicode Syntax.md @@ -4,17 +4,13 @@ Elixir supports Unicode throughout the language. Quoted identifiers, such as strings (`"olá"`) and charlists (`'olá'`), support Unicode since Elixir v1.0. Strings are UTF-8 encoded. Charlists are lists of Unicode codepoints. In such cases, the contents are kept as written by developers, without any transformation. -Elixir also supports Unicode in identifiers since Elixir v1.5, as defined in the [Unicode Annex #31](http://unicode.org/reports/tr31/). This is the focus of this document. +Elixir also supports Unicode in identifiers since Elixir v1.5, as defined in the [Unicode Annex #31](http://unicode.org/reports/tr31/). The focus of this document is to describe how Elixir implements the requirements outlined in the Unicode Annex. These requirements are refered to as R1, R6 and so on. -## Version - -The Unicode Annex specify a list of requirements that may or may not be implemented by programming languages. This document lists all of the requirements implemented by Elixir, refered as R1, R6 and so on. - -To check the Unicode version of your current Elixir installation, please run `String.Unicode.version()`. +To check the Unicode version of your current Elixir installation, run `String.Unicode.version()`. ## R1. Default Identifiers -Elixir identifiers are identified as: +Elixir identifiers are specified as: := * ? @@ -47,7 +43,6 @@ Variables in Elixir follow the identifier rule above with the following modifica * `` includes the codepoint _ (005F) * `` must not include Lu (letter uppercase) and Lt (letter titlecase) characters - * `` includes Lu (letter uppercase) and Lt (letter titlecase) characters ## R3. Pattern_White_Space and Pattern_Syntax Characters