Add editorconfig

This commit is contained in:
Andras Schmelczer 2025-04-02 22:06:29 +01:00
parent b51cf5c04e
commit ea76c5ecc6
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
5 changed files with 15 additions and 5 deletions

11
.editorconfig Normal file
View file

@ -0,0 +1,11 @@
# https://editorconfig.org
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 4

View file

@ -6,8 +6,8 @@ use serde::{Deserialize, Serialize};
use super::merge_context::MergeContext;
use crate::operation_transformation::Operation;
// CursorPosition is a wrapper around usize to represent the position of an
// identifiable cursor in a text document based on the character index.
// CursorPosition represents the position of an identifiable cursor in a text
// document based on its (UTF-8) character index.
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, PartialEq, Default)]
pub struct CursorPosition {

View file

@ -2,4 +2,3 @@ parent: marketplace
left: market| place
right: market|space
expected: market| placemarket|space