class Person (object):
def __init__(self, name):
self.name = name
-- https://github.com/purescript/documentation/blob/master/language/Syntax.md
-- Syntax is whitespace sensitive. The general rule of thumb is that declarations which span multiple lines should be indented past the column on which they were first defined on their subsequent lines.
foo = bar +
baz
Node A
goes to: Node B
example
title Particle Notation
* A link to PLDB
https://pldb.io
print
+ 1 2
, 11
defun message msg
do print : Here's a message
print msg
print : End of message.
class Person
|string| name
// Similar to python or lua
define pythtree ax:real ay:real bx:real by:real depth:int do
cx = ax-ay+by
end
Languages with Semantic Indentation include Python, Haskell, CoffeeScript, Markdown, Nim, YAML, Elm, Pug, F#, PureScript, HAML, Make, Org Mode, Sass, reStructuredText, Imba, Literate CoffeeScript, FlowchartFun, wisp, Nemerle, Particles, Scroll, Boo, SCSS, Cyber, XL, LiveScript, Stylus, Inform, Argdown, ABC, Cobra, bog, Occam, Genie, Curry, Miranda, Cirru, Z, Spin, Ohayo, Aldor, ISWIM, Speedie, Quaint, ELFE, Crap, Calcit, Note, PROMAL, TQL, Space, BuddyScript, p4p, beads-lang, Truth, Sweet Expressions, noon, Indental, Misty, Sheep, McKeeman Form, I-expressions, converge, Ordered graph data language, CSL, net-format, MADCAP VI, MADCAP, bml
Languages without Semantic Indentation include JavaScript, C, Java, HTML, CSS, Perl, Ruby, PHP, Go, XML, JSON, TypeScript, SQL, C#, R, PowerShell, Bash, Rust, Swift, Scala, MATLAB, Lua, Kotlin, Clojure, Elixir, Erlang, SAS, Prolog, Objective-C, Julia, Mathematica, Dart, COBOL, CUDA, Solidity, Visual Basic, Racket, Pascal, Fortran, Ada, TOML, PostgreSQL, Crystal, MySQL, Reason, D, GraphQL, Haxe, Scheme, Chapel, awk, Groovy, Tex, SPSS, OCaml, Gleam, LLVM IR, HCL, Smalltalk, SVG, VHDL, Tcl, JSON5, Idris, Forth, Deno, Visual Basic .NET, Protocol Buffers, Ini, ARM, Rescript, Yacc, APL, odin, Embedded Crystal, OpenCL, LaTeX, Red, J, fish, Maple, starlark, Flow, ANTLR, V, IDL, KaTeX, Fennel, Standard ML, Dhall, Delphi, Stata, ABAP, PostCSS, ActionScript, Verilog, Ballerina, PRQL, Hy, FLUX, Factor, Squirrel, BASIC, C3, AutoHotkey, Wren, PostScript, ColdFusion, XQuery, Common Lisp, Smali, Eiffel, PEG.js, MUMPS, EDN, MoonScript, Wa-lang, NetLogo, API Blueprint, DOT, Koka, Zephir, Vala, Lex, Jsonnet, Logo, Frege, VBScript, M4, Pig Latin, carp, Dafny, PL/SQL, Nginx, QML, Nearley, Terra, GNU Octave, Opa, Eve, Halide, Nextflow, CIR, Agda, Processing, mlir, Jison, Taichi, PL/I, AMPL, Emacs Lisp, Regular Expressions, POV-Ray SDL, Hjson, Hack, Wolfram Language, unison, GAP, Lil, YASnippet, mgmt, Expect, Applescript, Ceylon, Modula-2, SystemVerilog, DTrace, Ron, Rexx, x86 Assembly, progsbase, Cue, Oberon, ALGOL 60, PowerBuilder, ECL, Click, Scilab, idyll, WDL, TLA+, Slope, K, JAI, AutoIt, Observable, Clean, eC, Simula, Golo, Transact-SQL, Felix, datascript, CWL, Bison, AGC, Ring, Sage, Mercury, Mirah, Logica, BCPL, Datalog, CIL, AspectJ, SuperCollider, Mu, Dylan, Xojo, SugarSS, REBOL, Modula-3, X10, Raku, ArkScript, Closure Templates, Oz, JCL, EBNF, Lily, xBase, mun-lang, Modelica, Maxima, Neko, B, Self, JFlex, Veryl, ATS, NewLisp, Fancy, Xtend, CLIPS, LFE, Io, SourcePawn, Isabelle, Fantom, NCAR Command Language, NSIS, Pike, PAWN, Befunge, Object Pascal, Filebench WML, Logtalk, OpenSCAD, Dockerfile, Icon, Turing, Whiley, Lasso, LilyPond, Csound, Objective C++, P4, E, UrWeb, PureBasic, Java Properties, JSON with Comments, lispyscript, Praat Script, LiveCode, Euphoria, IGOR Pro, Cg, Angelscript, Clipper, dlvm, Logos, Gherkin, GDScript, Ch, JADE, Limbo, Monkey, XSLT, Guile, SNOBOL, spry, neut, Objective-J, Croc, Harbour, Classroom Object Oriented Language, Spatial, Volt, Ragel, Concise Encoding, Alloy, dex, CIL, Pan, Apex, Ren'Py, Fortress, MQL5, Mask, Jule, Falcon, Vigil, Java Bytecode, PicoLisp, OX, spiral, C shell, popr, PL/M, Seed7, Tea, OCL, Not Quite C, NestedText, Netwide Assembler, UNLAMBDA, Script.NET, Augmented Backus-Naur Form, FreeBASIC, Linden Scripting Language, Opal, Gentoo Ebuild, PARI/GP, DM, PIC, LPC, Joy, NetLinx, MAXScript, Eclipse Command Language, Jasmin, ldpl, Vale, Bluespec, RELAX NG, Game Maker Language, Oberon-2, S-PLUS, BitBake, dedukti, SETL, HOPE, Dc, Strips, BETA, Cycript, SMT, Structured Query Reporter, Unicon, monte, storyscript, Slice, Nymph, HiveQL, LoomScript, Cell, Sather, COMPONENT PASCAL, Lingo, LotusScript, Hocon, MiniD, Rc, gentee, Claro, WebIDL, CartoCSS, Ezhil, XS, LookML, Grammatical Framework, Refal, SRecode Template, Type Language, RenderScript, Gambas, Brightscript, Adventure Game Studio Script, Not eXactly C, Maya Embedded Language, KRL, Edje Data Collection, GCC Machine Description, ShaderLab, tht, Project Mentat, Orc, MOO, Charity, CLIST, BLISS, kai, Parser 3, Wart, Action!, Frink, HAGGIS, QB64, JCOF, Mouse, silk, manool, S-algol, Heron, Recfiles, NetRexx, Yet Another Scripting Language, KiXtart, JS++, OpenVera, Alpine Abuild, ARexx, XBase++, MVEL, PowerBASIC, Yoix, NS Basic, xxl, winxed, Mary, neeilang, Plus, Simple Actor Language System and Architecture, EuLisp, carth, Language Server Index Format, Lite-C, taf, Bel, Judoscript, Fjölnir, owen-lang, Rust MIR, Xbasic, FutureBASIC, SIL, PowerQuery M, Handel-C, OEM, VHDL-AMS, blockml, SimCode, Ion, Tuple space, Fable, True BASIC, blz, Ren, False, ISETL, omega, MACRO-10, XPL0, Pnuts, S3, Arden syntax, ProbeVue, hilvl, Action Code Script, z80, Atomese, fizz, flagship, Guix Workflow Language, ActiveVFP, JSL, Operational Control Language, CLOS, epsilon, Plot, rosette-lang, Zimpl, holyc, lain, stella, verifpal, ThinBasic, FML, StarOffice Basic, Caché Basic, Fibonacci, ArchieML, Bla, luau, OptimJ, Finite State Language, Module Management System, Soy, Parrot BASIC, XBLite, ca65 Assembly, GraphQL Schema Definition Language, Literate Agda, rbs, Reactive Plan Language, WxBasic, StruQL, SubX, Yedalog, Turbo Basic, Treelang, bioscript, ctalk-lang, dslx, Manchester syntax, Portable Bit Map Format, Netpbm grayscale image format, ppm-format, txr, wescheme, CFScript, ddfql, turnstile, Creative Basic, tremor-query, rbscript, sora, zephyr-asdl, WebAssembly Text Format
View all concepts with or missing a hasSemanticIndentation measurement
Read more about Semantic Indentation on the web: 1.