commit db07b68e88e9db0905ac93608c73cbc7bcae4c6f parent 217c0df87c677e57747d66f95bc4c94486b77951 Author: finwo <finwo@pm.me> Date: Thu, 16 Aug 2018 15:11:10 +0200 Added page numbers to the table of contents of spec0001 Diffstat:
| M | spec/spec0001.txt | | | 128 | ++++++++++++++++++++++++++++++++++++++++---------------------------------------- |
1 file changed, 64 insertions(+), 64 deletions(-)
diff --git a/spec/spec0001.txt b/spec/spec0001.txt @@ -62,75 +62,75 @@ SPEC 0001 Javascript Styling August 2018 Table of contents - 1. Introduction - 1.1. Conventions - 2. Source file basics - 2.1. File name - 2.2. File encoding - 2.3. Special characters - 2.3.1. Whitespace characters - 2.3.2. Special escape sequences - 2.3.3. Non-ASCII characters - 3. Formatting - 3.1. Braces - 3.1.1. Control structures - 3.1.2. Non-empty blocks - 3.1.3. Empty blocks - 3.2. Indentation - 3.3. String literals - 3.4. Number literals - 3.5. Array literals - 3.6. Object literals - 3.7. Functions - 3.7.1. Function literals - 3.7.2. Arrow function literals - 3.7.3. Generator functions - 3.7.4. Parameters - 3.7.4.1. Default parameters - 3.7.4.2. Rest parameters - 3.7.5. Returns - 3.7.6. Spread operator - 3.8. Classes - 3.8.1. Constructors - 3.8.2. Fields - 3.8.3. ES5 class declarations - 3.8.4. Prototype manipulation - 3.8.5. Getters and setters - 3.9. This - 3.10. Disallowed features - 4. Naming - 4.1. Rules for all identifiers - 4.2. Rules by identifier type - 5. JSDoc - 5.1. General form - 5.2. Summary - 5.3. Description - 5.4. Tags - 5.4.1. JSDoc tag reference - 5.5. Line wrapping - 5.6. Top/file-level comments - 5.7. Class comments - 5.8. Enum and typedef comments - 5.9. Method and function comments - 5.10. Property comments - 5.11. Nullability - 5.12. Template parameter types + 1. Introduction .................................................. 4 + 1.1. Conventions .............................................. 4 + 2. Source file basics ............................................ 4 + 2.1. File name ................................................ 4 + 2.2. File encoding ............................................ 4 + 2.3. Special characters ....................................... 4 + 2.3.1. Whitespace characters ............................... 4 + 2.3.2. Special escape sequences ............................ 4 + 2.3.3. Non-ASCII characters ................................ 4 + 3. Formatting .................................................... 5 + 3.1. Braces ................................................... 5 + 3.1.1. Control structures .................................. 5 + 3.1.2. Non-empty blocks .................................... 5 + 3.1.3. Empty blocks ........................................ 5 + 3.2. Indentation .............................................. 5 + 3.3. String literals .......................................... 5 + 3.4. Number literals .......................................... 6 + 3.5. Array literals ........................................... 6 + 3.6. Object literals .......................................... 6 + 3.7. Functions ................................................ 7 + 3.7.1. Function literals ................................... 7 + 3.7.2. Arrow function literals ............................. 7 + 3.7.3. Generator functions ................................. 7 + 3.7.4. Parameters .......................................... 7 + 3.7.4.1. Default parameters ............................. 7 + 3.7.4.2. Rest parameters ................................ 8 + 3.7.5. Returns ............................................. 8 + 3.7.6. Spread operator ..................................... 8 + 3.8. Classes .................................................. 8 + 3.8.1. Constructors ........................................ 8 + 3.8.2. Fields .............................................. 8 + 3.8.3. ES5 class declarations .............................. 8 + 3.8.4. Prototype manipulation .............................. 9 + 3.8.5. Getters and setters ................................. 9 + 3.9. This ..................................................... 9 + 3.10. Disallowed features ..................................... 9 + 4. Naming ....................................................... 10 + 4.1. Rules for all identifiers ............................... 10 + 4.2. Rules by identifier type ................................ 10 + 5. JSDoc ........................................................ 10 + 5.1. General form ........................................... 10 + 5.2. Summary ................................................ 10 + 5.3. Description ............................................ 11 + 5.4. Tags ................................................... 12 + 5.4.1. JSDoc tag reference ................................ 12 + 5.5. Line wrapping .......................................... 13 + 5.6. Top/file-level comments ................................ 13 + 5.7. Class comments ......................................... 13 + 5.8. Enum and typedef comments .............................. 13 + 5.9. Method and function comments ........................... 13 + 5.10. Property comments ...................................... 14 + 5.11. Nullability ............................................ 14 + 5.12. Template parameter types ............................... 14 Bron [Page 2] SPEC 0001 Javascript Styling August 2018 - 6. Policies - 6.1. Unspecified styling - 6.2. Deprecation - 6.3. Code not in TrackThis style - 6.3.1. Reformatting existing code - 6.3.2. Newly added code - 6.4. Local style rules - 6.5. Generated code - 6.6. Third-party code - 7. Informative resources - 8. Author information + 6. Policies ..................................................... 14 + 6.1. Unspecified styling ..................................... 14 + 6.2. Deprecation ............................................. 14 + 6.3. Code not in TrackThis style ............................. 14 + 6.3.1. Reformatting existing code ......................... 15 + 6.3.2. Newly added code ................................... 15 + 6.4. Local style rules ....................................... 15 + 6.5. Generated code .......................................... 15 + 6.6. Third-party code ........................................ 15 + 7. Informative resources ........................................ 16 + 8. Author information ........................................... 17